mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
9
cluster/saltbase/reactor/highstate-all.sls
Normal file
9
cluster/saltbase/reactor/highstate-all.sls
Normal file
@@ -0,0 +1,9 @@
|
||||
# This runs highstate on the ALL nodes.
|
||||
#
|
||||
# Used from the vSphere provider. The IP addresses of the minons are passed to
|
||||
# the apiserver as arguments and every minion has static routes to every other
|
||||
# minion. This means every node should be refreshed when a node is added.
|
||||
#
|
||||
highstate_run:
|
||||
cmd.state.highstate:
|
||||
- tgt: '*'
|
@@ -1,6 +1,7 @@
|
||||
pkg-core:
|
||||
pkg.installed:
|
||||
- names:
|
||||
- curl
|
||||
{% if grains['os_family'] == 'RedHat' %}
|
||||
- python
|
||||
- git
|
||||
|
@@ -17,6 +17,9 @@ nginx:
|
||||
{% if grains.cloud == 'vagrant' %}
|
||||
{% set cert_ip=grains.fqdn_ip4 %}
|
||||
{% endif %}
|
||||
{% if grains.cloud == 'vsphere' %}
|
||||
{% set cert_ip=grains.ip_interfaces.eth0[0] %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
# If there is a pillar defined, override any defaults.
|
||||
{% if pillar['cert_ip'] is defined %}
|
||||
@@ -34,6 +37,8 @@ nginx:
|
||||
- source: salt://nginx/{{certgen}}
|
||||
{% if cert_ip is defined %}
|
||||
- args: {{cert_ip}}
|
||||
- require:
|
||||
- pkg: curl
|
||||
{% endif %}
|
||||
- cwd: /
|
||||
- user: root
|
||||
|
Reference in New Issue
Block a user