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

    Yury Bushmelev

    12/17/2022, 4:48 AM
    but someone should install all those packages.. and I’d personally prefer puppet to do it not I 🙂
  • s

    Steve Handy

    12/17/2022, 5:02 AM
    So server is NOT reading the yaml file. That's the issue.
  • y

    Yury Bushmelev

    12/17/2022, 5:07 AM
    Could you try to add
    Copy code
    file { '<some_tmp_dir>/test.txt':
      content => $facts.get('software').to_json,
    }
    in the very beginning of the class above?
  • y

    Yury Bushmelev

    12/17/2022, 5:20 AM
    I’m fine with opensource puppet usually
  • s

    Slackbot

    12/17/2022, 7:01 AM
    This message was deleted.
    y
    a
    d
    • 4
    • 5
  • w

    William Myers

    12/19/2022, 12:03 AM
    Trying to cleanup a few of my manifests, How should this look?
  • w

    William Myers

    12/19/2022, 12:04 AM
    It works as-is but I'm having difficulty finding an explanation of the warnings that the puppet extension is flagging.
  • w

    William Myers

    12/19/2022, 12:04 AM
    variable not enclosed in {}Puppet(variables_not_enclosed) , what would a good example of how this SHOULD look be?
  • s

    Slackbot

    12/19/2022, 12:05 AM
    This message was deleted.
    h
    • 2
    • 1
  • n

    natemccurdy

    12/19/2022, 12:10 AM
    When using just a variable, it doesn't need to be quoted. So, it should look like:
    Copy code
    sudo::conf { $user_name:
  • k

    kenyon

    12/19/2022, 12:12 AM
    it’ll probably complain about class not being in its own file too
  • n

    natemccurdy

    12/19/2022, 12:12 AM
    Unless you're intentionally trying to stringify something that's not a string, like an integer. Then it'd be:
    Copy code
    sudo::conf { "${user_name}":
    But that's unnecessary in this case, I assume, since user name is a string.
  • n

    natemccurdy

    12/19/2022, 12:13 AM
    Unless you're intentionally trying to stringify something that's not a string, like an integer. Then it'd be:
    Copy code
    sudo::conf { "${user_name}":
    But that's unnecessary in this case, I assume, since user name is a string.
  • w

    William Myers

    12/19/2022, 12:14 AM
    For the content, that's getting pulled from hiera, does it prefer the fully qualified hiera value?
  • k

    kenyon

    12/19/2022, 12:16 AM
    don’t think it works any other way
  • s

    Slackbot

    12/19/2022, 9:35 AM
    This message was deleted.
    y
    k
    b
    • 4
    • 11
  • k

    krishna kant mishra

    12/19/2022, 9:36 AM
    As per puppet docs I have changed gems[‘puppet-util-windows-service’]=[‘<=0.8.8’,require:false]
  • k

    krishna kant mishra

    12/19/2022, 9:37 AM
    But still its throwing the error..can you help me if you are aware of this in your infra
  • k

    krishna kant mishra

    12/20/2022, 11:32 AM
    It would be a great help if you check if I have missed something
  • s

    Slackbot

    12/20/2022, 11:53 AM
    This message was deleted.
    h
    s
    +4
    • 7
    • 21
  • s

    sh6624gsj8

    12/20/2022, 11:53 AM
    Hello , I am trying to understand Deferred functions and see how I can implement it , however I wanted to know how does it handle eyaml decryption? Could someone please explain? Thanks in advance
  • h

    helindbe

    12/20/2022, 1:06 PM
    To install volt - https://github.com/voxpupuli/puppet-vault
  • h

    helindbe

    12/20/2022, 1:06 PM
    The deferred lookup support: https://github.com/voxpupuli/puppet-vault_lookup
  • h

    helindbe

    12/20/2022, 1:07 PM
    And to use as a hiera backend: https://github.com/petems/petems-hiera_vault
  • h

    helindbe

    12/20/2022, 1:07 PM
    To install vault - https://github.com/voxpupuli/puppet-vault
  • h

    helindbe

    12/20/2022, 1:07 PM
    A better approach would be to use vault for secrets.
  • s

    sh6624gsj8

    12/20/2022, 2:43 PM
    I have been using - https://github.com/theforeman/puppet-foreman/blob/master/lib/puppet/parser/functions/foreman.rb to lookup for host list from foreman - would I be able to use deferred function with this ? Example :-
    Copy code
    $host_lookup = "facts.mynamespace::namespace = test and facts.mynamespace::classes::host = true and facts.imynamespace::dc != ${trusted['extensions']['mynamespace_dc']}" # lint:ignore:140chars
        $host_list = foreman('hosts', $host_lookup, ['certname'])
  • s

    sh6624gsj8

    12/20/2022, 2:45 PM
    message has been deleted
  • s

    sh6624gsj8

    12/20/2022, 2:45 PM
    I have been using - https://github.com/theforeman/puppet-foreman/blob/master/lib/puppet/parser/functions/foreman.rb to lookup for host list from foreman - would I be able to use deferred function with this ? Example :-
    Copy code
    $host_lookup = "facts.mynamespace::namespace = test and facts.mynamespace::classes::host = true and facts.imynamespace::dc != ${trusted['extensions']['mynamespace_dc']}" # lint:ignore:140chars
        $host_list = foreman('hosts', $host_lookup, ['certname'])
  • p

    P. Aiello

    12/20/2022, 2:56 PM
    For those that are interested, the discussion about Advents of Code has a lot of snippets, especially those from @helindbe, that can be useful as starting point for bigger things. https://github.com/puppetlabs/community/discussions/28
1...255256257...428Latest