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

    vchepkov

    02/09/2023, 1:09 PM
    don't use it in your manifests
  • v

    vchepkov

    02/09/2023, 1:09 PM
    you suppose to include parent class
  • v

    Vesco

    02/09/2023, 1:15 PM
    i just downloaded the module form forge.puppet.com i thought every module in there could have been deployed through foreman but in fact here i have to comment every "assert_private()" 😕
  • v

    vchepkov

    02/09/2023, 1:15 PM
    that shouldn't be the case
  • v

    vchepkov

    02/09/2023, 1:16 PM
    that shouldn't be the case
  • v

    Vesco

    02/09/2023, 1:16 PM
    what u mean?
  • y

    Yury Bushmelev

    02/09/2023, 1:17 PM
    how do you include the chrony module in your manifest?
  • v

    Vesco

    02/09/2023, 1:20 PM
    i did download this: https://forge.puppet.com/modules/puppet/chrony/readme imported class on forema commented assert_private() on: /etc/puppetlabs/code/environments/production/modules/chrony/manifests/config.pp /etc/puppetlabs/code/environments/production/modules/chrony/manifests/install.pp /etc/puppetlabs/code/environments/production/modules/chrony/manifests/service.pp re run job from foreman
  • v

    Vesco

    02/09/2023, 1:21 PM
    i mean it worked, but i don't know if that is the right way to do it ...
  • y

    Yorokobi

    02/09/2023, 1:22 PM
    imported class on forema
    How, exactly?
  • v

    Vesco

    02/09/2023, 1:23 PM
    configure -> classes -> import environment from foreman.localhost
  • y

    Yorokobi

    02/09/2023, 1:24 PM
    How did you assign chrony to nodes?
  • v

    Vesco

    02/09/2023, 1:25 PM
    hosts->all hosts -> tick host where i want to run it -> Puppet enc tab -> include chrony from Available Config Groups
  • v

    Vesco

    02/09/2023, 1:26 PM
    before that i did create a config group named chrony which has the 4 classes: chrony chrony::config chrony::install chrony::service
  • y

    Yury Bushmelev

    02/09/2023, 1:26 PM
    ^ leave just
    chrony
    there
  • y

    Yury Bushmelev

    02/09/2023, 1:26 PM
    you don’t need
    chrony::*
    classes
    ❤️ 1
  • y

    Yorokobi

    02/09/2023, 1:27 PM
    fwiw, my r10k-managed env under foreman lists chrony::* as well. Regardless, adding only chrony to the Included Classes list should be sufficient unless you're including it somewhere else such as a control repo's manifests/site.pp
  • v

    Vesco

    02/09/2023, 1:31 PM
    Yury thank you
  • v

    Vesco

    02/09/2023, 1:31 PM
    i removed chrony from the server, edited config group by removing
    chrony::*
    classes, re run the job from foreman and it ran smoothly
  • v

    Vesco

    02/09/2023, 1:32 PM
    i really appreciate it
    👍🏻 1
  • k

    krishna kant mishra

    02/09/2023, 3:19 PM
    Hi Team, Does puppet agent verion 7.21 supports some specific format of fact file?
  • k

    krishna kant mishra

    02/09/2023, 3:26 PM
    I’m getting this error only when I install 7.21. Same installation scripts work well for 6.24
  • l

    Lumiere

    02/09/2023, 3:29 PM
    you might check the contents of that yaml file
  • l

    Lumiere

    02/09/2023, 3:29 PM
    is there some special character in there that isn't parsing properly?
  • v

    vchepkov

    02/09/2023, 3:30 PM
    it shouldn't have BOM
  • k

    krishna kant mishra

    02/09/2023, 3:30 PM
    It have BOM
  • v

    vchepkov

    02/09/2023, 3:30 PM
    it shouldn't, it's documented
  • v

    vchepkov

    02/09/2023, 3:30 PM
    https://www.puppet.com/docs/puppet/7/external_facts.html#external_facts-structured-data-facts-windows
  • k

    krishna kant mishra

    02/09/2023, 3:31 PM
    awesome
1...301302303...428Latest