Yehuda Katz
06/01/2022, 12:59 PMfile
, exec
, and other "built-in" types: https://puppet.com/docs/puppet/7/type.html
Also look at the stdlib
module which adds file_line
and some other useful helpers: https://forge.puppet.com/modules/puppetlabs/stdlib
Find a simple module and see how it works. I have recently been doing a lot of work with the Puppetlabs HAProxy module - it is large, but simple.Yehuda Katz
06/01/2022, 1:04 PMSlackbot
06/01/2022, 1:05 PMYehuda Katz
06/01/2022, 1:08 PMZeke Marffy
06/01/2022, 1:30 PMcreate
and destroy
, so I am using httparty
. I do apologize but still don't understand where to write the steps to determine that "is" value. Cannot find info on that in the documentation.Zeke Marffy
06/01/2022, 1:37 PMcreate
and destroy
), so I am using httparty
. I do apologize but still don't understand where to write the steps to determine that "is" value. Cannot find info on that in the documentation.Slackbot
06/01/2022, 4:18 PMLumiere
06/01/2022, 4:22 PMEnum['present', 'absent'] $ensure = 'present'
Lumiere
06/01/2022, 4:24 PMSlackbot
06/01/2022, 4:27 PMCVQuesty
06/01/2022, 4:27 PMCVQuesty
06/01/2022, 4:27 PMYehuda Katz
06/01/2022, 5:39 PMYehuda Katz
06/01/2022, 5:39 PMYehuda Katz
06/02/2022, 2:23 AMMike Renfro
06/02/2022, 2:59 AMnetworking.netmask
is 255.255.255.0
, would return 24
? Pretty sure I’ve seen Puppet functions, but would want to do this in Hiera so I can make a firewalld zone for the local subnet.
Might be able to convince firewalld to use the existing dotted quad notation, but the fact that I could put in an invalid netmask without complaint doesn’t give me confidence there.Manuel Nhiuana
06/02/2022, 5:14 AMmatt
06/02/2022, 12:54 PMmatt
06/02/2022, 1:00 PMmatt
06/02/2022, 1:00 PMmatt
06/02/2022, 1:00 PMmatt
06/02/2022, 1:00 PMmatt
06/02/2022, 1:16 PMmatt
06/02/2022, 1:19 PMSlackbot
06/02/2022, 2:00 PMSlackbot
06/02/2022, 2:18 PMhbui
06/02/2022, 2:40 PMbastelfreak
06/02/2022, 3:31 PMhelindbe
06/02/2022, 3:59 PMjosh
06/02/2022, 5:17 PM