ziggy
04/14/2023, 11:00 PMsigners:
user:
key: |
<%= $user_ca %>
The contents of user_ca is a private key; however, when I do this, the outcome is:
signers:
user:
key: |
-----BEGIN OPENSSH PRIVATE KEY-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
-----END OPENSSH PRIVATE KEY-----
The first line is correct, but the ones at the bottom are not inline with the top. Is there a way to ensure they are all aligned with the top line?smortex
04/14/2023, 11:50 PM{ signers => { user => { key => $user_ca } } }.to_yaml
, that is generate a data structure that match what you want and serialize it to YAMLsmortex
04/14/2023, 11:50 PM{ signers => { user => { key => $user_ca } } }.to_yaml
, that is generate a data structure that match what you want and serialize it to YAMLsmortex
04/14/2023, 11:51 PMziggy
04/15/2023, 12:01 AMvchepkov
04/15/2023, 7:57 PMDr Bunsen Honeydew
04/15/2023, 7:58 PMfiddyspence-hash_file
module at https://forge.puppet.com/fiddyspence/hash_file?src=slack&channel=puppetDavid Sandilands
04/17/2023, 12:09 PMDavid Sandilands
04/17/2023, 12:09 PMSlackbot
04/17/2023, 5:13 PMSlackbot
04/17/2023, 5:15 PMDr Bunsen Honeydew
04/17/2023, 5:15 PMvchepkov
04/17/2023, 5:19 PMSlackbot
04/17/2023, 5:39 PMCVQuesty
04/17/2023, 5:40 PMrusty
04/17/2023, 5:41 PMCVQuesty
04/17/2023, 5:42 PMDr Bunsen Honeydew
04/17/2023, 5:42 PMpuppetlabs-stdlib
module at https://forge.puppet.com/puppetlabs/stdlib?src=slack&channel=puppetSlackbot
04/17/2023, 5:42 PMCam Chambers
04/17/2023, 5:43 PM| hieradata
| -> defaults.yaml
|
| manifests
| -> init.pp
| -> install.pp
| -> config.pp
| -> service.pp
|
| templates
| -> config.yaml.epp
The idea is that the init.pp just does a contain on the other 3 subclasses (install, config, and service).
The install subclass will contain the functions for installing the application as well as any parameters related to the install:
class module::install(
String $package_version
) {}
The config subclass will generate and place the config file on the server as well as contain any parameters related to the config.
The service subclass will ensure the service is in a given state and will contain any parameters related to the service.
My coworker proposed that instead all of the parameters actually be defined within the init.pp class. I felt it was better to put parameters in the subclasses they belong to as a means of being more organized but what are your thoughts?Slackbot
04/17/2023, 5:43 PMCVQuesty
04/17/2023, 5:43 PMvchepkov
04/17/2023, 5:43 PMCVQuesty
04/17/2023, 5:45 PMCVQuesty
04/17/2023, 5:57 PMSlackbot
04/17/2023, 6:19 PMYury Bushmelev
04/17/2023, 6:20 PMCam Chambers
04/17/2023, 6:51 PMSlackbot
04/17/2023, 7:12 PMSlackbot
04/18/2023, 4:55 AM