hello there,
I would like to clean up my puppet recipes.
My init.pp. I have ~three_hundred entries as '*new resources*'(see below).
here is how is setup today. I am wondering if we could do better. I am
working with puppet v5.
ideas or suggestions? thank you very much.
*mymodule/manifests/init.pp*
class mymodule {
if ($::collect == 'external') {
create_resources('nginx::resource::server',
lookup('mymodule::external_http_domains'),
lookup('mymodule::http_defaults'))
...
...
...
} else {
create_resources('nginx::resource::server',
lookup('mymodule::internal_http_domains'),
lookup('mymodule::http_defaults'))
...
...
...
}
*mymodule/data/external.yaml*
mymodule::http_defaults:
ensure: present
ssl: true
listen_port: 443
...
...
...
mymodule::external_http_domains:
order1.internet.com:
use_default_location: false
ssl_cert: /etc/nginx/ssl/twe/order1.internet.com.pem
ssl_key: /etc/nginx/ssl/twe/order1.internet.com.key
...
...
...
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/1124d0d6-06b4-4ad5-9f06-a8a30fb9bbbfn%40googlegroups.com.