# This file is managed by Puppet.
<%# This file is very similar to install.sh from epflsti/cluster.coreos.install %>

[main]
listen          = true

[agent]
pluginsync      = true
report          = true
ignoreschedules = true
daemon          = false
ca_server       = <%= @puppet_conf_ca_server %>
certname        = <%= @fqdn %>
environment     = production
server          = <%= @puppet_conf_server %>

# This file is managed by Puppet.
<%# This file is very similar to install.sh from epflsti/cluster.coreos.install %>

[main]
listen          = true
ca_server       = <%= @puppet_conf_ca_server %>

[agent]
pluginsync      = true
report          = true
ignoreschedules = true
daemon          = false
ca_server       = <%= @puppet_conf_ca_server %>
certname        = <%= @fqdn %>
environment     = production
server          = <%= @puppet_conf_server %>

Configure ca_server also in section
Configure ca_server also in section [main]

This lets "puppet certificate" work, e.g.

1. `puppet certificate generate --ca-location remote whatever.name`
2. go to Foreman → Infrastructure → Smart proxies → your smart proxy →
   Actions drop down (right-hand side) → Certificates
3. Find the certificate request and click Sign
4. `puppet certificate find --ca-location remote whatever.name`
