1 vote
Accepted

Puppet syntax issue when configuring a Prometheus scrape on an SNMP exporter

You're halfway there - you don't want to remove the quotes, but move them: 'job_name' => 'snmp_scrapper', 'scrape_interval' => '60s', 'scrape_timeout' => '10s', '...
Longsight's user avatar
  • 126
1 vote
Accepted

How to fix puppet installation of ifupdown2 so that networking comes back up (or doesn't go down)?

If you follow the recommendation you have found, you could just restart the networking service after the package installation. This approach requires that the service{'networking':} is also managed by ...
Esa Jokinen's user avatar
  • 49.8k
1 vote

Puppet server can not sign certificate - FileSystemException: Operation not permitted

It was some permission problem. It seems that the error message was not correct. The file /etc/puppetlabs/puppet/ssl/ca/serial could not be written by puppet. So, the following command solved the ...
Tibor Nagy's user avatar
1 vote

Adding users to Unix groups only if said groups exist (puppet)

Generally speaking, puppet only directly cares about what you care about. Craig gives a nice explanation in that answer. With that said, it's likely (and recommended) puppet is managing the stacks ...
h0tw1r3's user avatar
  • 2,813
1 vote

Check directory before creating file in puppet?

EDIT: The below works if you're using puppet apply but not otherwise, because the find_file function is evaluated during catalog compilation. That means this approach checks the existence of /path/to/...
Wildcard's user avatar
  • 182

Only top scored, non community-wiki answers of a minimum length are eligible