Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to start any number of docker containers as puppet agents to the master #1

Open
azbarcea opened this issue Aug 13, 2019 · 0 comments

Comments

@azbarcea
Copy link
Owner

Look for the following:

# docker --version
Docker version 17.05.0-ce, build 89658be

the startup:

[
  {
    "Path": "/usr/lib/systemd/systemd",
    "Name": "/pasture-app-dragon.auroch.vm",
    "HostConfig": {
      "Binds": [
        "/var/cache/rubygems:/var/cache/rubygems",
        "/var/yum:/var/yum",
        "/var/cache/yum:/var/cache/yum",
        "/etc/yum.repos.d:/etc/yum.repos.d",
        "/opt/puppetlabs/server/data:/opt/puppetlabs/server/data",
        "/sys/fs/cgroup:/sys/fs/cgroup:ro",
        "/etc/docker/ssl_dir/:/etc/puppetlabs/puppet/ssl"
      },
      "RestartPolicy": {
        "Name": "always",
      },
      "ExtraHosts": [
        "learning.puppetlabs.vm puppet:172.18.0.1"
      ],
    "Mounts": [
      {
        "Source": "/etc/yum.repos.d",
        "Destination": "/etc/yum.repos.d",
      },
      {
        "Source": "/opt/puppetlabs/server/data",
        "Destination": "/opt/puppetlabs/server/data",
      },
      {
        "Source": "/sys/fs/cgroup",
        "Destination": "/sys/fs/cgroup",
      },
      {
        "Source": "/etc/docker/ssl_dir",
        "Destination": "/etc/puppetlabs/puppet/ssl",
      },
      {
        "Source": "/var/cache/rubygems",
        "Destination": "/var/cache/rubygems",
      },
      {
        "Source": "/var/yum",
        "Destination": "/var/yum",
      },
      {
        "Source": "/var/cache/yum",
        "Destination": "/var/cache/yum",
      }
    ],
    "Config": {
      "Hostname": "pasture-app-dragon.auroch.vm",
      "Env": [
        "RUNLEVEL=3",
        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin",
        "HOME=/root/",
        "TERM=xterm"
      ],
      "Cmd": [
        "/usr/lib/systemd/systemd"
      ],
      "Healthcheck": {
        "Test": [
          "CMD-SHELL",
          "/bin/true"
        ],
        "Interval": 600000000000
      },
      "Image": "agent",
      "Volumes": null,
      "Entrypoint": null,
      "OnBuild": null,
      "Labels": {
        "org.label-schema.build-date": "20190305",
        "org.label-schema.license": "GPLv2",
        "org.label-schema.name": "CentOS Base Image",
        "org.label-schema.schema-version": "1.0",
        "org.label-schema.vendor": "CentOS"
      }
    },
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant