2021-07-13 20:04:25 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: mediaserver
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Apply playbook
|
2021-07-13 21:17:02 +00:00
|
|
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
|
|
|
commands:
|
2021-07-14 07:06:22 +00:00
|
|
|
- |
|
|
|
|
mkdir ~/.ssh && \
|
|
|
|
echo "$${private_key}" > ~/.ssh/id_rsa && \
|
|
|
|
chmod 0600 ~/.ssh/id_rsa
|
2021-07-13 21:17:02 +00:00
|
|
|
- ansible-galaxy collection install -r requirements.yml
|
2021-07-13 21:18:37 +00:00
|
|
|
- |
|
|
|
|
ansible-playbook \
|
2021-07-13 21:17:02 +00:00
|
|
|
--inventory inventory.yml \
|
2021-07-13 21:18:37 +00:00
|
|
|
--extra-vars "cifs_username=$${cifs_username} cifs_password=$${cifs_password}" \
|
2021-07-13 21:17:02 +00:00
|
|
|
playbook.yml
|
2021-07-13 20:04:25 +00:00
|
|
|
environment:
|
2022-10-15 15:47:55 +00:00
|
|
|
ANSIBLE_HOST_KEY_CHECKING: false
|
2021-07-13 20:04:25 +00:00
|
|
|
cifs_username:
|
|
|
|
from_secret: cifs_username
|
|
|
|
cifs_password:
|
|
|
|
from_secret: cifs_password
|
|
|
|
private_key:
|
|
|
|
from_secret: ssh_privatekey
|
2021-07-13 21:17:02 +00:00
|
|
|
# volumes:
|
|
|
|
# - name: certificates
|
|
|
|
# path: /certificates
|
2021-07-13 20:04:25 +00:00
|
|
|
|
2021-07-13 21:17:02 +00:00
|
|
|
# volumes:
|
|
|
|
# - name: certificates
|
|
|
|
# claim:
|
|
|
|
# name: flexvolsmb-drone-certs
|