Commit 1b3f729d authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

Merge branch 'trunk' into 'master'

light

See merge request infrastructure/system-configurations/proxmox-ve-setup!12
parents 6a0de89e b4c97496
Loading
Loading
Loading
Loading

.gitlab-ci.yml

deleted100644 → 0
+0 −45
Original line number Diff line number Diff line
# VARIABLES
variables:
  DOCKER_BUILDKIT: 1
  DOCKER_DRIVER: overlay2
  DOCKER_HOST: tcp://localhost:2375
  DOCKER_TLS_CERTDIR: ""

##########################################################################################################

## PIPELINE DEFINITION
stages:
  - shellcheck
  - ansible-lint

##########################################################################################################

### COMMON SECTION
.common: &common
  variables:
    GIT_DEPTH: 1
    ANSIBLE_FORCE_COLOR: "True"
  except:
    - /^master$/
  before_script:
    - chmod -R o-w ../

##########################################################################################################

### TEST SECTION

shellcheck:
  <<: *common
  stage: shellcheck
  image: registry.cyberbrain.pw/tools/linters/shellcheck
  script:
    - shellcheck -s sh setup.sh
    - shellcheck -s sh -e SC2068 run.sh

ansible-lint:
  <<: *common
  stage: ansible-lint
  image: registry.cyberbrain.pw/ansible/ansible
  script:
    - sh setup.sh
    - find . -maxdepth 1 -mindepth 1 -name \*.yml -a -not -name requirements.yml -a -not -name .gitlab-ci.yml -type f -print0 | xargs -0 ansible-lint -v -x '204' -x '301' -x '305' -x '401'

ansible.cfg

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
[defaults]
transport = ssh
timeout = 45

[privilege_escalation]
become=True
become_method=sudo
become_user=root
become_ask_pass=False

run.sh

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
#!/usr/bin/env sh

ANSIBLE_CONFIG="$(dirname "$0")/ansible.cfg" ansible-playbook $@

setup.sh

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
#!/usr/bin/env sh

ansible-galaxy install -r "$(dirname "$0")/requirements.yml"