Skip to content

Conversation

@KrisMagjistari
Copy link
Contributor

No description provided.

@KrisMagjistari KrisMagjistari force-pushed the ducktape-modernize branch 2 times, most recently from eae2a4f to 4d9fa93 Compare January 25, 2022 12:50
ducktape::apache::shield_vhost::enabled: true
ducktape::apache::shield_vhost::ensure: 'present'
ducktape::apache::shield_vhost::port: 80
#ducktape::apache::shield_vhost::docroot: "%{lookup('apache::docroot')}"
Copy link
Contributor Author

@KrisMagjistari KrisMagjistari Jan 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think no since apache::docroot might be defined on code instead of hiera

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well for now for these particular cases, when the value of a parameter is a puppet resource/class param, I have left their default values inside the puppet code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déjalo en la clase y crea un ticket en team para ver si podemos mejorar o simplificar la clase shield_vhost.

Boolean $enabled,
Hash $instance_defaults = {
bind => $::redis::bind,
port => $::redis::port,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can you represent these variables on the yaml file?

Im guessing

ducktape::redis::external::munin_node_plugin::instance_defaults
  bind: lookup(...)
  port: lookup(...)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your guess is half right, but again you can't rely on other modules defining it's params on hiera

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déjalo en la clase.

@KrisMagjistari KrisMagjistari force-pushed the ducktape-modernize branch 6 times, most recently from 9cb7656 to 709c2c3 Compare January 26, 2022 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants