Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
salt
gitlab-ci-templates
Commits
6d9dd44d
Commit
6d9dd44d
authored
May 01, 2019
by
Arif Ali
Browse files
Trying to template up kitchen salt
parent
825872fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
gitlab-ci-includes/rpm_pkg.yml
View file @
6d9dd44d
...
...
@@ -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 ."
...
...
kitchen/config.yml
0 → 100644
View file @
6d9dd44d
---
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment