Commit 6d9dd44d authored by Arif Ali's avatar Arif Ali
Browse files

Trying to template up kitchen salt

parent 825872fb
......@@ -22,6 +22,7 @@ build_rpm:
deploy_rpm:
stage: deploy
script:
- yum -y install openssh-clients
- ssh -o "StrictHostKeyChecking=no" root@mirror.ocf.co.uk "cd /var/www/html/salt/formula ; rm -rf $CI_PROJECT_NAME*.rpm"
- scp -o "StrictHostKeyChecking=no" rpms/$CI_PROJECT_NAME*.rpm root@mirror.ocf.co.uk:/var/www/html/salt/formula
- ssh -o "StrictHostKeyChecking=no" root@mirror.ocf.co.uk "cd /var/www/html/salt/formula ; createrepo ."
......
---
driver:
name: docker
platforms:
- name: centos-6
driver_config:
image: registry.ocf.co.uk/salt/docker/centos-6-kitchen:base
privileged: True
run_command: /sbin/init
use_cache: False
remove_images: True
provisioner:
salt_yum_repo: 'https://repo.saltstack.com/yum/redhat/$releasever/$basearch/%s'
salt_yum_rpm_key: 'https://repo.saltstack.com/yum/redhat/6/x86_64/latest/SALTSTACK-GPG-KEY.pub'
salt_install: yum
pip_bin: pip2.7
salt_bootstrap_options: "-P -p git -p curl -p sudo -y -x python2.7 git %s"
lifecycle:
post_create:
- remote: sudo yum -y update
- name: centos-7
driver_config:
image: registry.ocf.co.uk/salt/docker/centos-7-kitchen:base
privileged: True
run_command: /usr/lib/systemd/systemd
use_cache: False
remove_images: True
provisioner:
salt_yum_repo: 'https://repo.saltstack.com/yum/redhat/$releasever/$basearch/%s'
salt_yum_rpm_key: 'https://repo.saltstack.com/yum/redhat/7/x86_64/latest/SALTSTACK-GPG-KEY.pub'
salt_install: yum
lifecycle:
post_create:
- remote: sudo yum -y update
- name: ubuntu-16.04
driver_config:
image: registry.ocf.co.uk/salt/docker/ubuntu-16.04-kitchen:base
privileged: True
run_command: /lib/systemd/systemd
use_cache: False
remove_images: True
provisioner:
salt_apt_repo: 'https://repo.saltstack.com/apt/ubuntu/16.04/amd64'
salt_apt_repo_key: 'https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub'
salt_install: apt
lifecycle:
post_create:
- remote: sudo apt -f upgrade
- name: ubuntu-18.04
driver_config:
image: registry.ocf.co.uk/salt/docker/ubuntu-18.04-kitchen:base
privileged: True
run_command: /lib/systemd/systemd
use_cache: False
remove_images: True
provisioner:
salt_apt_repo: 'https://repo.saltstack.com/apt/ubuntu/18.04/amd64'
salt_apt_repo_key: 'https://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest/SALTSTACK-GPG-KEY.pub'
salt_install: apt
lifecycle:
post_create:
- remote: sudo apt -f upgrade
suites:
- name: carbon
provisioner:
salt_version: '2016.11'
excludes:
- ubuntu-18.04
- name: nitrogen
provisioner:
salt_version: '2017.7'
- name: oxygen
provisioner:
salt_version: '2018.3'
- name: flourine
provisioner:
salt_version: '2019.2'
- name: develop
provisioner:
salt_version: 'develop'
salt_install: bootstrap
Markdown is supported
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