Sha256: 5904c0331982a6f5ffd2c9b90eca3f3a4b0e983225361e3e4e97274b6eb9b314

Contents?: true

Size: 1.92 KB

Versions: 56

Compression:

Stored size: 1.92 KB

Contents

#cloud-config
write_files:
  - path: /etc/kontena-agent.env
    permissions: 0600
    owner: root
    content: |
      KONTENA_URI="<%= master_uri %>"
      KONTENA_TOKEN="<%= grid_token %>"
      KONTENA_PEER_INTERFACE=eth1
      KONTENA_VERSION=<%= version %>
  - path: /etc/systemd/system/docker.service.d/50-kontena.conf
    content: |
        [Service]
        Environment='DOCKER_OPTS=--insecure-registry="10.81.0.0/19" --bip="172.17.43.1/16"'
  - path: /etc/sysctl.d/99-inotify.conf
    owner: root
    permissions: 0644
    content: |
      fs.inotify.max_user_instances = 8192
  - path: /etc/resolv.conf
    permissions: 0644
    owner: root
    content: |
      nameserver 172.17.43.1
      nameserver 8.8.8.8
      nameserver 8.8.4.4
coreos:
  units:
    - name: 10-weave.network
      runtime: false
      content: |
        [Match]
        Type=bridge
        Name=weave*

        [Network]
    - name: kontena-agent.service
      command: start
      enable: true
      content: |
        [Unit]
        Description=kontena-agent
        After=network-online.target
        After=docker.service
        Description=Kontena Agent
        Documentation=http://www.kontena.io/
        Requires=network-online.target
        Requires=docker.service

        [Service]
        Restart=always
        RestartSec=5
        EnvironmentFile=/etc/kontena-agent.env
        ExecStartPre=-/usr/bin/docker stop kontena-agent
        ExecStartPre=-/usr/bin/docker rm kontena-agent
        ExecStartPre=/usr/bin/docker pull kontena/agent:${KONTENA_VERSION}
        ExecStart=/usr/bin/docker run --name kontena-agent \
            -e KONTENA_URI=${KONTENA_URI} \
            -e KONTENA_TOKEN=${KONTENA_TOKEN} \
            -e KONTENA_PEER_INTERFACE=${KONTENA_PEER_INTERFACE} \
            -v=/var/run/docker.sock:/var/run/docker.sock \
            -v=/etc/kontena-agent.env:/etc/kontena.env \
            --net=host \
            kontena/agent:${KONTENA_VERSION}

Version data entries

56 entries across 26 versions & 1 rubygems

Version Path
kontena-cli-0.14.7 lib/kontena/machine/azure/cloudinit.yml
kontena-cli-0.14.7 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.7 lib/kontena/machine/digital_ocean/cloudinit.yml
kontena-cli-0.14.6 lib/kontena/machine/azure/cloudinit.yml
kontena-cli-0.14.6 lib/kontena/machine/digital_ocean/cloudinit.yml
kontena-cli-0.14.6 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.5 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.5 lib/kontena/machine/azure/cloudinit.yml
kontena-cli-0.14.5 lib/kontena/machine/digital_ocean/cloudinit.yml
kontena-cli-0.14.4 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.4 lib/kontena/machine/azure/cloudinit.yml
kontena-cli-0.14.4 lib/kontena/machine/digital_ocean/cloudinit.yml
kontena-cli-0.14.3 lib/kontena/machine/digital_ocean/cloudinit.yml
kontena-cli-0.14.3 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.3 lib/kontena/machine/azure/cloudinit.yml
kontena-cli-0.14.2 lib/kontena/machine/digital_ocean/cloudinit.yml
kontena-cli-0.14.2 lib/kontena/machine/azure/cloudinit.yml
kontena-cli-0.14.2 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.1 lib/kontena/machine/upcloud/cloudinit.yml
kontena-cli-0.14.1 lib/kontena/machine/azure/cloudinit.yml