https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • v

    vchepkov

    09/06/2022, 9:19 PM
    doesn't look kosher, but as long as it works
  • p

    Pavlos Parissis

    09/06/2022, 9:20 PM
    well this is an internal mod for ubuntu VMs 🙂 I am lucky
  • p

    Pavlos Parissis

    09/06/2022, 9:21 PM
    ok I would like to thank all for your time and input, the code is less bad and works. It is 23:20 here so I will raise an issue tomorrow. once again thanks a lot for your assistance, it is very much appreciated.
    👍 1
  • p

    Pavlos Parissis

    09/07/2022, 7:38 AM
    funny enough we do have
    Copy code
    Class['apt::update'] -> Package <| provider == 'apt' |>`
    in our code base, in another module which is also declared from the same metaprofile that the filebeat module is declared. So I don't understand why the collector didn't do the trick and I had to add the require in the package resource so it depends on
    Class['apt::update']
  • s

    Slackbot

    09/07/2022, 8:30 AM
    This message was deleted.
    v
    p
    • 3
    • 4
  • p

    Pierfrancesco Aiello

    09/07/2022, 8:30 AM
    Recently the visual studio code extension for puppet was updated and it yells for every line that is not intended as expected (I presume this is puppet-lint). How do I turn off the thing in VS? I normally use 4 tabs instead of 2 because of habit (I find it better)
  • s

    Slackbot

    09/07/2022, 9:53 AM
    This message was deleted.
    a
    d
    +2
    • 5
    • 73
  • d

    Dr Bunsen Honeydew

    09/07/2022, 9:53 AM
    See the
    puppetlabs-apache
    module at https://forge.puppet.com/puppetlabs/apache?src=slack&amp;channel=puppet
  • a

    Andries Malan

    09/07/2022, 9:53 AM
    Hi Guys I have a question regarding vhost_enable_dir in puppetlabs/apache(8.1.0) forge module. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/init.pp#L441 Currently we are able to set this parameter to false which disables it. Is it possible to do that in the latest module? It seems like [Stdlib::Absolutepath] is the only option currently.
  • d

    David 'The Anvil'

    09/07/2022, 10:40 AM
    You can see it set as this depending on the OS family within the default params manifest.
  • w

    Willem Basson

    09/07/2022, 11:23 AM
    unless there is some special way to force literal undef?
  • v

    vchepkov

    09/07/2022, 1:02 PM
    don't set it to anything, it's undef by default
  • w

    Willem Basson

    09/07/2022, 1:40 PM
    not on debian
    🤷‍♂️ 1
  • c

    CVQuesty

    09/07/2022, 1:51 PM
    That’s not entirely correct: vhost_enable_dir is not set on any platform. Now, it may require you to set it for the Debian family, but the setting from Puppet in their apache module in their GitHub repo has it undef. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/init.pp#L502 The Params are undef: https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/params.pp#L73 and the Hieradata is unpopulated:
  • c

    CVQuesty

    09/07/2022, 1:51 PM
    That’s not entirely correct: vhost_enable_dir is not set on any platform. Now, it may require you to set it for the Debian family, but the setting from Puppet in their apache module in their GitHub repo has it undef. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/init.pp#L502 The Params are undef: https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/params.pp#L73 and the Hieradata is unpopulated:
  • c

    CVQuesty

    09/07/2022, 1:52 PM
    https://github.com/puppetlabs/puppetlabs-apache/blob/main/data/common.yaml#L1 So, @vchepkov is absolutely correct… by default, the setting is undef. >>>>>> I stand corrected. They’ve made the change in a later line in params.pp to accommodate Debian specifically. Mea Culpa. But, “yes”, you have to tell it what directory you want it to exist in, not whether you want it on or off. I don’t know that it’s ever been Boolean. I just looked into an Apache I have running on a very old OS that is serving static HTTP circa 2017, and it was not Boolean in 2017.
  • c

    CVQuesty

    09/07/2022, 1:52 PM
    https://github.com/puppetlabs/puppetlabs-apache/blob/main/data/common.yaml#L1 So, @vchepkov is absolutely correct… by default, the setting is undef. It’s up to you to change it to meet your platform.
  • c

    CVQuesty

    09/07/2022, 1:59 PM
    https://github.com/puppetlabs/puppetlabs-apache/blob/main/data/common.yaml#L1 So, @vchepkov is absolutely correct… by default, the setting is undef. >>>>>> I stand corrected. They’ve made the change in a later line in params.pp to accommodate Debian specifically. Mea Culpa. But, “yes”, you have to tell it what directory you want it to exist in, not whether you want it on or off. I don’t know that it’s ever been Boolean. I just looked into an Apache I have running on a very old OS that is serving static HTTP circa 2017, and it was not Boolean in 2017.
  • w

    Willem Basson

    09/07/2022, 2:08 PM
    however, it type was never enforced before
  • w

    Willem Basson

    09/07/2022, 2:09 PM
    so sending false as the value made https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/init.pp#L706 not manage the file at all
  • w

    Willem Basson

    09/07/2022, 2:09 PM
    so sending false as the value made https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/init.pp#L706 not manage the file at all
  • v

    vchepkov

    09/07/2022, 2:17 PM
    Submit a fix
  • s

    Slackbot

    09/07/2022, 2:18 PM
    This message was deleted.
    👍 1
    v
    a
    • 3
    • 5
  • w

    Willem Basson

    09/07/2022, 2:19 PM
    https://github.com/puppetlabs/puppetlabs-apache/pull/2304
  • w

    Willem Basson

    09/07/2022, 2:19 PM
    https://github.com/puppetlabs/puppetlabs-apache/pull/2304
  • r

    rismoney

    09/07/2022, 2:20 PM
    anyone use Prometheus
    puppetdb_sd_config
    ? Is this a good approach for service discovery? what is kind of nice is you can use a query and find only endpoints that say have the package or class present. I don't always love creating dependencies, because it creates a much larger testing scope (ie if puppetdb goes offline, what happens, etc)
  • a

    Andries Malan

    09/07/2022, 2:20 PM
    PR submitted https://github.com/puppetlabs/puppetlabs-apache/pull/2304
  • v

    vchepkov

    09/07/2022, 2:21 PM
    type should be
    Copy code
    Optional[Variant[Stdlib::Absolutepath,Boolean[False]]]
  • j

    Jason Grammenos

    09/07/2022, 2:58 PM
    is this kind of thing possible? passing a list of classes to require to the puppet class from hiera?
    Copy code
    hiera:
    mm::drs::trigger_jenkins::trigger_jenkins_require: 
      - Class['mm::common']
    
    class:
      exec { 'trigger_jenkins_build_continue':
        require => $trigger_jenkins_require,
      }
  • j

    Jason Grammenos

    09/07/2022, 3:04 PM
    all my testing gets me is errors:
    Copy code
    Could not find resource 'Class['mm::common']' in parameter 'require'
    it seems like the hiera ends up passing the array as strings
1...154155156...428Latest