github.com/deemoprobe/k8s-first-commit@v0.0.0-20230430165612-a541f1982be3/src/saltbase/salt/docker/init.sls (about) 1 docker-repo: 2 pkgrepo.managed: 3 - humanname: Docker Repo 4 - name: deb https://get.docker.io/ubuntu docker main 5 - key_url: https://get.docker.io/gpg 6 - require: 7 - pkg: pkg-core 8 9 # The default GCE images have ip_forwarding explicitly set to 0. 10 # Here we take care of commenting that out. 11 /etc/sysctl.d/11-gce-network-security.conf: 12 file.replace: 13 - pattern: '^net.ipv4.ip_forward=0' 14 - repl: '# net.ipv4.ip_forward=0' 15 16 net.ipv4.ip_forward: 17 sysctl.present: 18 - value: 1 19 20 bridge-utils: 21 pkg.latest 22 23 cbr0: 24 container_bridge.ensure: 25 - cidr: {{ grains['cbr-cidr'] }} 26 - mtu: 1460 27 28 /etc/default/docker: 29 file.managed: 30 - source: salt://docker/docker-defaults 31 - template: jinja 32 - user: root 33 - group: root 34 - mode: 644 35 - makedirs: true 36 37 lxc-docker: 38 pkg.latest 39 40 # There is a race here, I think. As the package is installed, it will start 41 # docker. If it doesn't write its pid file fast enough then this next stanza 42 # will try to ensure that docker is running. That might start another copy of 43 # docker causing the thing to get wedged. 44 # 45 # See docker issue https://github.com/dotcloud/docker/issues/6184 46 47 # docker: 48 # service.running: 49 # - enable: True 50 # - require: 51 # - pkg: lxc-docker 52 # - watch: 53 # - file: /etc/default/docker