mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-27 03:44:04 +00:00
Update cni binary #23712 is depending on this. Not sure why this one gets in first. Hand merging this
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
/opt/cni:
|
|
file.directory:
|
|
- user: root
|
|
- group: root
|
|
- mode: 755
|
|
- makedirs: True
|
|
|
|
/etc/cni/net.d:
|
|
file.directory:
|
|
- user: root
|
|
- group: root
|
|
- mode: 755
|
|
- makedirs: True
|
|
|
|
# These are all available CNI network plugins.
|
|
cni-tar:
|
|
archive:
|
|
- extracted
|
|
- user: root
|
|
- name: /opt/cni
|
|
- makedirs: True
|
|
- source: https://storage.googleapis.com/kubernetes-release/network-plugins/cni-42c4cb842dad606a84e93aad5a4484ded48e3046.tar.gz
|
|
- tar_options: v
|
|
- source_hash: md5=8cee1d59f01a27e8c2c10c120dce1e7d
|
|
- archive_format: tar
|
|
- if_missing: /opt/cni/bin
|
|
|
|
{% if grains['cloud'] is defined and grains.cloud in [ 'vagrant' ] %}
|
|
# Install local CNI network plugins in a Vagrant environment
|
|
cmd-local-cni-plugins:
|
|
cmd.run:
|
|
- name: |
|
|
cp -v /vagrant/cluster/network-plugins/cni/bin/* /opt/cni/bin/.
|
|
chmod +x /opt/cni/bin/*
|
|
cmd-local-cni-config:
|
|
cmd.run:
|
|
- name: |
|
|
cp -v /vagrant/cluster/network-plugins/cni/config/* /etc/cni/net.d/.
|
|
chown root:root /etc/cni/net.d/*
|
|
chmod 744 /etc/cni/net.d/*
|
|
{% endif -%}
|