Rebase drone image;Add variables w/ secrets
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
98db1a8d77
commit
f51bffae19
41
.drone.yml
41
.drone.yml
@ -3,39 +3,26 @@ type: kubernetes
|
|||||||
name: mediaserver
|
name: mediaserver
|
||||||
|
|
||||||
steps:
|
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
|
- 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:
|
environment:
|
||||||
cifs_username:
|
cifs_username:
|
||||||
from_secret: cifs_username
|
from_secret: cifs_username
|
||||||
cifs_password:
|
cifs_password:
|
||||||
from_secret: cifs_password
|
from_secret: cifs_password
|
||||||
volumes:
|
|
||||||
- name: certificates
|
|
||||||
path: /certificates
|
|
||||||
settings:
|
|
||||||
playbook: playbook.yml
|
|
||||||
inventory: inventory.yml
|
|
||||||
galaxy: requirements.yml
|
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: ssh_privatekey
|
from_secret: ssh_privatekey
|
||||||
# vault_password:
|
# volumes:
|
||||||
# from_secret: ansible_vault_password
|
# - name: certificates
|
||||||
|
# path: /certificates
|
||||||
|
|
||||||
volumes:
|
# volumes:
|
||||||
- name: certificates
|
# - name: certificates
|
||||||
claim:
|
# claim:
|
||||||
name: flexvolsmb-drone-certs
|
# name: flexvolsmb-drone-certs
|
||||||
|
@ -59,12 +59,16 @@
|
|||||||
update_cache: yes
|
update_cache: yes
|
||||||
allow_unauthenticated: yes
|
allow_unauthenticated: yes
|
||||||
name:
|
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
|
||||||
- docker-ce-cli
|
- docker-ce-cli
|
||||||
- containerd.io
|
- containerd.io
|
||||||
|
|
||||||
|
- name: Install Python Docker module
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name: docker
|
||||||
|
executable: pip3
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: Install Docker Compose
|
- name: Install Docker Compose
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64
|
url: https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
driver: local
|
driver: local
|
||||||
driver_options:
|
driver_options:
|
||||||
type: cifs
|
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 }}"
|
device: "//192.168.11.225/{{ item.path }}"
|
||||||
loop:
|
loop:
|
||||||
- name: cifs_books
|
- name: cifs_books
|
||||||
@ -28,9 +28,8 @@
|
|||||||
volumes:
|
volumes:
|
||||||
- /root/containers/pvr/plex/config:/config
|
- /root/containers/pvr/plex/config:/config
|
||||||
- cifs_photos:/data/photos
|
- cifs_photos:/data/photos
|
||||||
- cifs_video-films:/data/movies
|
- cifs_videos-films:/data/movies
|
||||||
- cifs_video-series:/data/series
|
- cifs_videos-series:/data/series
|
||||||
command: sleep 1d
|
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
- ansible.builtin.debug:
|
- ansible.builtin.debug:
|
||||||
|
Loading…
Reference in New Issue
Block a user