Skip to content
Snippets Groups Projects
Verified Commit 0e374767 authored by Marc Schmitt's avatar Marc Schmitt
Browse files

Initial commit from template


Signed-off-by: default avatarMarc 'risson' Schmitt <risson@cri.epita.fr>
parents
Branches
Tags
No related merge requests found
Pipeline #9606 passed with stage
in 1 minute and 43 seconds
---
exclude_paths:
- .cache
use_default_rules: true
offline: false
.envrc 0 → 100644
use_flake() {
watch_file flake.nix
watch_file flake.lock
watch_file poetry.lock
eval "$(nix print-dev-env)"
}
use flake
.cache
---
stages:
- lint
ansible:
stage: lint
needs: []
image: registry.cri.epita.fr/cri/docker/ansible/master
script:
- ansible-lint
yaml:
stage: lint
needs: []
image: registry.cri.epita.fr/cri/docker/ansible/master
script:
- yamllint -f colored .
This diff is collapsed.
{
"nodes": {
"futils": {
"locked": {
"lastModified": 1610051610,
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1614349151,
"narHash": "sha256-6DiOCUai7VKZk+O7xKyV9Xc3KAYd0l/eEepGRruo0qU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2986cad9984e9a9ed9ed69573221015ee29d481a",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"futils": "futils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
futils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, futils } @ inputs:
let
inherit (nixpkgs) lib;
inherit (lib) recursiveUpdate;
inherit (futils.lib) eachDefaultSystem defaultSystems;
nixpkgsFor = lib.genAttrs defaultSystems (system: import nixpkgs {
inherit system;
});
in
(eachDefaultSystem (system:
let
pkgs = nixpkgsFor.${system};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
(poetry2nix.mkPoetryEnv {
projectDir = self;
overrides = poetry2nix.overrides.withDefaults (self: super: {
cryptography = super.cryptography.overridePythonAttrs (old: {
CRYPTOGRAPHY_DONT_BUILD_RUST = 1;
propagatedBuildInputs = old.propagatedBuildInputs ++ [ super.setuptools-rust ];
});
enrich = super.enrich.overridePythonAttrs (old: {
propagatedBuildInputs = old.propagatedBuildInputs ++ [ super.toml ];
});
});
})
git
poetry
vault
];
shellHook = ''
export VAULT_ADDR='https://vault.cri.epita.fr:443'
'';
};
}
));
}
---
dependencies: []
galaxy_info:
role_name: bootstrap
author: 'Xavier Login <xavier@cri.epita.fr>'
description: Role description
company: CRI - EPITA
license: GPL-3.0-or-later
min_ansible_version: 2.9
platforms:
- name: Debian
versions:
- all
- name: Ubuntu
versions:
- all
galaxy_tags: []
This diff is collapsed.
[tool.poetry]
name = "cri-template"
version = "1.0.0"
description = ""
authors = ["CRI - EPITA <cri@cri.epita.fr>"]
[tool.poetry.dependencies]
python = "^3.8"
ansible = "<2.10"
hvac = "*"
jmespath = "*"
[tool.poetry.dev-dependencies]
ansible-lint = "*"
yamllint = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment