Skip to content

Commit

Permalink
Merge pull request #93 from myii/ci/use-amazon-develop-until-master-a…
Browse files Browse the repository at this point in the history
…vailable

feat(amazonlinux): use `develop` image until `master` is ready
  • Loading branch information
myii authored Nov 3, 2019
2 parents 29b8913 + f7fb78d commit f3dcbbe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length
title: 'perf(travis): improve `salt-lint` invocation [skip ci]'
body: '* Automated using https://github.com/myii/ssf-formula/pull/90'
title: 'ci(kitchen): use `develop` image until `master` is ready (`amazonlinux`) [skip ci]'
body: '* Automated using https://github.com/myii/ssf-formula/pull/93'
# yamllint enable rule:line-length
github:
owner: 'saltstack-formulas'
Expand Down
12 changes: 12 additions & 0 deletions ssf/files/default/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@

{%- macro format_driver_image(os, os_ver, salt_ver, py_ver) %}
{%- filter indent(6) %}
{#- Temporary use of `develop` instead of `master` until it is available #}
{%- if [os, os_ver, salt_ver] == ['amazonlinux', 2, 'master'] %}
{%- set salt_ver = 'develop' %}
{%- endif %}
image: netmanagers/salt-{{ salt_ver }}-py{{ py_ver }}:{{ os | replace('/', '-') }}-{{ os_ver }}
{%- endfilter %}
{%- endmacro %}
Expand All @@ -61,6 +65,10 @@ image: netmanagers/salt-{{ salt_ver }}-py{{ py_ver }}:{{ os | replace('/', '-')
{%- set prov_cmds = [] %}
{#- Specific to `master` #}
{%- if salt_ver == 'master' %}
{#- Temporary use of `develop` instead of `master` until it is available #}
{%- if [os, os_ver, salt_ver] == ['amazonlinux', 2, 'master'] %}
{%- set salt_ver = 'develop' %}
{%- endif %}
{%- do prov_cmds.append('- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com') %}
{%- do prov_cmds.append('- sh bootstrap-salt.sh -XdPbfrq -x python{0} git {1}'.format(py_ver, salt_ver)) %}
{%- if semrel_formula == 'deepsea' %}
Expand Down Expand Up @@ -153,6 +161,10 @@ platforms:
# image: netmanagers/salt-2017.7-py2:centos-6
# run_command: /sbin/init
{%- else %}
{%- if [os, os_ver, salt_ver] == ['amazonlinux', 2, 'master'] %}
# Use the `develop` image temporarily until the `master` image is available
# Not changing the name to minimise disruption across all of the formulas
{%- endif %}
- name: {{ os | replace('/', '-') }}-{{ os_ver | replace('.', '') }}-{{ salt_ver | replace('.', '-') }}-py{{ py_ver }}
driver:
{{- format_driver_image(os, os_ver, salt_ver, py_ver) }}
Expand Down

0 comments on commit f3dcbbe

Please sign in to comment.