Skip to content

Commit febeb4c

Browse files
fix(cleanup): tidyup few loose ends
1 parent 54730b2 commit febeb4c

30 files changed

+73
-78
lines changed

.travis.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,24 @@ jobs:
6161
- env: INSTANCE=default-debian-10-master-py3
6262
# - env: INSTANCE=default-ubuntu-1804-master-py3
6363
- env: INSTANCE=default-centos-8-master-py3
64-
# - env: INSTANCE=default-fedora-31-master-py3
65-
# - env: INSTANCE=default-opensuse-leap-151-master-py3
66-
# - env: INSTANCE=default-amazonlinux-2-master-py3
64+
- env: INSTANCE=default-fedora-31-master-py3
65+
# env: INSTANCE=default-opensuse-leap-151-master-py3
66+
# env: INSTANCE=default-amazonlinux-2-master-py3
6767
# - env: INSTANCE=default-arch-base-latest-master-py2
6868
# - env: INSTANCE=default-debian-10-3000-1-py3
69-
- env: INSTANCE=default-ubuntu-1804-3000-1-py3
70-
- env: INSTANCE=source-ubuntu-1804-3000-1-py3
71-
- env: INSTANCE=repo-ubuntu-1804-3000-1-py3
69+
- env: INSTANCE=default-ubuntu-1804-master-py3
7270
# - env: INSTANCE=default-centos-8-3000-1-py3
7371
# - env: INSTANCE=default-fedora-31-3000-1-py3
7472
# - env: INSTANCE=default-opensuse-leap-151-3000-1-py3
75-
- env: INSTANCE=binary-opensuse-leap-151-3000-1-py3
7673
# - env: INSTANCE=default-amazonlinux-2-3000-1-py3
77-
- env: INSTANCE=binary-amazonlinux-2-3000-1-py3
7874
# - env: INSTANCE=default-arch-base-latest-3000-1-py2
7975
# - env: INSTANCE=default-debian-10-2019-2-py3
8076
# - env: INSTANCE=default-debian-9-2019-2-py3
8177
# - env: INSTANCE=default-ubuntu-1804-2019-2-py3
8278
# - env: INSTANCE=default-ubuntu-1604-2019-2-py3
8379
# - env: INSTANCE=default-centos-8-2019-2-py3
8480
# - env: INSTANCE=default-centos-7-2019-2-py3
85-
- env: INSTANCE=default-fedora-31-2019-2-py3
81+
# - env: INSTANCE=default-fedora-31-2019-2-py3
8682
# - env: INSTANCE=default-opensuse-leap-151-2019-2-py3
8783
# - env: INSTANCE=default-amazonlinux-2-2019-2-py3
8884
# - env: INSTANCE=default-ubuntu-1804-2019-2-py2
@@ -97,8 +93,7 @@ jobs:
9793
# - env: INSTANCE=default-centos-6-2018-3-py2
9894
# - env: INSTANCE=default-opensuse-leap-151-2018-3-py2
9995
# - env: INSTANCE=default-amazonlinux-1-2018-3-py2
100-
# - env: INSTANCE=default-arch-base-latest-2018-3-py2
101-
- env: INSTANCE=binary-arch-base-latest-2018-3-py2
96+
- env: INSTANCE=default-arch-base-latest-2018-3-py2
10297

10398
## Define the release stage that runs `semantic-release`
10499
- stage: 'release'

docs/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ starts the associated node service.
6969

7070
This state will install Node package only.
7171

72-
``node.binary``
72+
``node.archive``
7373
^^^^^^^^^^^^^^^
7474

75-
This state will install Node from binary only.
75+
This state will install Node from archive only.
7676

7777
``node.source``
7878
^^^^^^^^^^^^^^^
@@ -112,7 +112,7 @@ This state will remove Node package and has a dependency on
112112
This state will remove Node package and has a dependency on
113113
``node.config.clean`` via include list.
114114

115-
``node.binary.clean``
115+
``node.archive.clean``
116116
^^^^^^^^^^^^^^^^^^^^^
117117

118118
This state will remove Node package and has a dependency on

kitchen.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ suites:
189189
verifier:
190190
inspec_tests:
191191
- path: test/integration/default
192-
- name: binary
192+
- name: archive
193193
provisioner:
194194
state_top:
195195
base:
@@ -201,10 +201,10 @@ suites:
201201
'*':
202202
- node
203203
pillars_from_files:
204-
node.sls: test/salt/pillar/binary.sls
204+
node.sls: test/salt/pillar/archive.sls
205205
verifier:
206206
inspec_tests:
207-
- path: test/integration/binary
207+
- path: test/integration/archive
208208
- name: source
209209
provisioner:
210210
state_top:

node/binary/clean.sls renamed to node/archive/clean.sls

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
{%- set tplroot = tpldir.split('/')[0] %}
66
{%- from tplroot ~ "/map.jinja" import node with context %}
77
8-
node-package-binary-clean-file-absent:
8+
node-package-archive-clean-file-absent:
99
file.absent:
1010
- names:
11-
- {{ node.pkg.binary.name }}
11+
- {{ node.pkg.archive.name }}
1212
{%- if node.linux.altpriority|int == 0 and node.kernel in ('linux', 'darwin') %}
13-
- {{ node.dir.binary }}/bin/node
14-
- {{ node.dir.binary }}/bin/npm
15-
- {{ node.dir.binary }}/bin/npx
13+
- {{ node.dir.archive }}/bin/node
14+
- {{ node.dir.archive }}/bin/npm
15+
- {{ node.dir.archive }}/bin/npx
1616
{%- endif %}
File renamed without changes.

node/binary/install.sls renamed to node/archive/install.sls

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,49 @@
44
{#- Get the `tplroot` from `tpldir` #}
55
{%- set tplroot = tpldir.split('/')[0] %}
66
{%- from tplroot ~ "/map.jinja" import node as node with context %}
7-
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
7+
{%- from tplroot ~ "/macros.jinja" import format_kwargs with context %}
88
9-
node-package-binary-install:
9+
node-package-archive-install:
1010
pkg.installed:
1111
- names:
1212
- tar
1313
- gzip
1414
- require_in:
15-
- file: node-package-binary-install
15+
- file: node-package-archive-install
1616
file.directory:
17-
- name: {{ node.pkg.binary.name }}
17+
- name: {{ node.pkg.archive.name }}
1818
- user: {{ node.rootuser }}
1919
- group: {{ node.rootgroup }}
2020
- mode: 755
2121
- makedirs: True
2222
- clean: True
2323
- require_in:
24-
- archive: node-package-binary-install
24+
- archive: node-package-archive-install
2525
- recurse:
2626
- user
2727
- group
2828
- mode
2929
archive.extracted:
30-
{{- format_kwargs(node.pkg.binary) }}
30+
{{- format_kwargs(node.pkg.archive) }}
3131
- retry: {{ node.retry_option }}
3232
- user: {{ node.rootuser }}
3333
- group: {{ node.rootgroup }}
3434
- recurse:
3535
- user
3636
- group
3737
- require:
38-
- file: node-package-binary-install
38+
- file: node-package-archive-install
3939
4040
{%- if node.linux.altpriority|int == 0 %}
4141
{%- for cmd in ('node', 'npx', 'npm',) %}
4242
43-
node-binary-install-file-symlink-{{ cmd }}:
43+
node-archive-install-file-symlink-{{ cmd }}:
4444
file.symlink:
4545
- name: /usr/local/bin/{{ cmd }}
46-
- target: {{ node.pkg.binary.name }}/bin/{{ cmd }}
46+
- target: {{ node.pkg.archive.name }}/bin/{{ cmd }}
4747
- force: True
4848
- onlyif: {{ node.kernel not in ('windows',) }}
4949
- require:
50-
- archive: node-package-binary-install
50+
- archive: node-package-archive-install
5151
{%- endfor %}
5252
{%- endif %}

node/clean.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include:
77
- .config.clean
88
- .package.clean
99
- .source.clean
10-
- .binary.clean
10+
- .archive.clean
1111

1212
{%- else %}
1313

node/config/clean.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
1010
{%- if node.pkg.use_upstream_source %}
1111
{%- set sls_package_clean = tplroot ~ '.source.clean' %}
12-
{%- elif node.pkg.use_upstream_binary %}
13-
{%- set sls_package_clean = tplroot ~ '.binary.clean' %}
12+
{%- elif node.pkg.use_upstream_archive %}
13+
{%- set sls_package_clean = tplroot ~ '.archive.clean' %}
1414
{%- else %}
1515
{%- set sls_package_clean = tplroot ~ '.package.clean' %}
1616
{%- endif %}

node/config/environ.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
1111
{%- if node.pkg.use_upstream_source %}
1212
{%- set sls_package_install = tplroot ~ '.source.install' %}
13-
{%- elif node.pkg.use_upstream_binary %}
14-
{%- set sls_package_install = tplroot ~ '.binary.install' %}
13+
{%- elif node.pkg.use_upstream_archive %}
14+
{%- set sls_package_install = tplroot ~ '.archive.install' %}
1515
{%- else %}
1616
{%- set sls_package_install = tplroot ~ '.package.install' %}
1717
{%- endif %}

node/config/file.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
1010
{%- if node.pkg.use_upstream_source %}
1111
{%- set sls_package_install = tplroot ~ '.source.install' %}
12-
{%- elif node.pkg.use_upstream_binary %}
13-
{%- set sls_package_install = tplroot ~ '.binary.install' %}
12+
{%- elif node.pkg.use_upstream_archive %}
13+
{%- set sls_package_install = tplroot ~ '.archive.install' %}
1414
{%- else %}
1515
{%- set sls_package_install = tplroot ~ '.package.install' %}
1616
{%- endif %}

0 commit comments

Comments
 (0)