Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9c0897e9
Commit
9c0897e9
authored
Dec 03, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the scripts to handle master/minion salt setups (e.g. AWS)
parent
a5100ef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
init.sls
cluster/saltbase/salt/kube-node-unpacker/init.sls
+27
-1
No files found.
cluster/saltbase/salt/kube-node-unpacker/init.sls
View file @
9c0897e9
...
@@ -6,11 +6,29 @@
...
@@ -6,11 +6,29 @@
- group: root
- group: root
- mode: 755
- mode: 755
{% if grains.cloud is defined and grains.cloud == 'gce' %}
node-docker-image-tags:
node-docker-image-tags:
file.touch:
file.touch:
- name: /srv/pillar/docker-images.sls
- name: /srv/pillar/docker-images.sls
{% else %}
kube-proxy-tar:
file.managed:
- name: /srv/salt/kube-bins/kube-proxy.tar
- source: salt://kube-bins/kube-proxy.tar
- makedirs: True
- user: root
- group: root
- mode: 755
{% endif %}
{% if pillar.get('is_systemd') %}
{% set is_helium = '0' %}
# Super annoying, the salt version on GCE is old enough that 'salt.cmd.run'
# isn't supported
{% if grains.cloud is defined and grains.cloud == 'aws' %}
{% set is_helium = salt.cmd.run('salt --version | grep -c Helium') %}
{% endif %}
# Salt Helium doesn't support systemd modules for service running
{% if pillar.get('is_systemd') and is_helium == '0' %}
{{ pillar.get('systemd_system_path') }}/kube-node-unpacker.service:
{{ pillar.get('systemd_system_path') }}/kube-node-unpacker.service:
file.managed:
file.managed:
...
@@ -20,7 +38,11 @@ node-docker-image-tags:
...
@@ -20,7 +38,11 @@ node-docker-image-tags:
cmd.wait:
cmd.wait:
- name: /opt/kubernetes/helpers/services bounce kube-node-unpacker
- name: /opt/kubernetes/helpers/services bounce kube-node-unpacker
- watch:
- watch:
{% if grains.cloud is defined and grains.cloud == 'gce' %}
- file: node-docker-image-tags
- file: node-docker-image-tags
{% else %}
- file: kube-proxy-tar
{% endif %}
- file: /etc/kubernetes/kube-node-unpacker.sh
- file: /etc/kubernetes/kube-node-unpacker.sh
- file: {{ pillar.get('systemd_system_path') }}/kube-node-unpacker.service
- file: {{ pillar.get('systemd_system_path') }}/kube-node-unpacker.service
...
@@ -38,7 +60,11 @@ kube-node-unpacker:
...
@@ -38,7 +60,11 @@ kube-node-unpacker:
- enable: True
- enable: True
- restart: True
- restart: True
- watch:
- watch:
{% if grains.cloud is defined and grains.cloud == 'gce' %}
- file: node-docker-image-tags
- file: node-docker-image-tags
{% else %}
- file: kube-proxy-tar
{% endif %}
- file: /etc/kubernetes/kube-node-unpacker.sh
- file: /etc/kubernetes/kube-node-unpacker.sh
{% endif %}
{% endif %}
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