Rebase drone image;Add variables w/ secrets
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2021-07-13 23:17:02 +02:00
parent 98db1a8d77
commit f51bffae19
3 changed files with 23 additions and 33 deletions

View File

@ -3,39 +3,26 @@ type: kubernetes
name: mediaserver
steps:
- name: Check syntax
image: plugins/ansible:1
environment:
cifs_username:
from_secret: cifs_username
cifs_password:
from_secret: cifs_password
settings:
playbook: playbook.yml
inventory: inventory.yml
galaxy: requirements.yml
syntax_check: true
- name: Apply playbook
image: plugins/ansible:1
image: bv11-cr01.bessems.eu/library/packer-extended
commands:
- ansible-galaxy collection install -r requirements.yml
- ansible-playbook \
--inventory inventory.yml \
--extra-vars "cifs_username=$${cifs_username} cifs_password=$${cifs_password}"
playbook.yml
environment:
cifs_username:
from_secret: cifs_username
cifs_password:
from_secret: cifs_password
volumes:
- name: certificates
path: /certificates
settings:
playbook: playbook.yml
inventory: inventory.yml
galaxy: requirements.yml
private_key:
from_secret: ssh_privatekey
# vault_password:
# from_secret: ansible_vault_password
# volumes:
# - name: certificates
# path: /certificates
volumes:
- name: certificates
claim:
name: flexvolsmb-drone-certs
# volumes:
# - name: certificates
# claim:
# name: flexvolsmb-drone-certs

View File

@ -59,12 +59,16 @@
update_cache: yes
allow_unauthenticated: yes
name:
# - docker-ce=5:19.03.13~3-0~ubuntu-focal
# - docker-ce-cli=5:19.03.13~3-0~ubuntu-focal
- docker-ce
- docker-ce-cli
- containerd.io
- name: Install Python Docker module
ansible.builtin.pip:
name: docker
executable: pip3
state: latest
- name: Install Docker Compose
get_url:
url: https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64

View File

@ -4,7 +4,7 @@
driver: local
driver_options:
type: cifs
o: "username=<removed>,password=<removed>,domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8"
o: "username={{ cifs_username }},password={{ cifs_password }},domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8"
device: "//192.168.11.225/{{ item.path }}"
loop:
- name: cifs_books
@ -28,9 +28,8 @@
volumes:
- /root/containers/pvr/plex/config:/config
- cifs_photos:/data/photos
- cifs_video-films:/data/movies
- cifs_video-series:/data/series
command: sleep 1d
- cifs_videos-films:/data/movies
- cifs_videos-series:/data/series
register: output
- ansible.builtin.debug: