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

    Brian Schonecker

    03/09/2023, 6:56 PM
    Is there anyone out there that's using Ivanti/Landesk? I've written a very rudimentary module to install the Ivanti agent (and such), pull the certificate from the core server and start various services. I've not yet push it to github because of all of the noise in the commit history but if anyone's interested, I can clean it up and push a temporary branch.
  • b

    Brian Schonecker

    03/09/2023, 6:56 PM
    Is there anyone out there that's using Ivanti/Landesk? I've written a very rudimentary module to install the Ivanti agent (and such), pull the certificate from the core server and start various services. I've not yet push it to github because of all of the noise in the commit history but if anyone's interested, I can clean it up and push a temporary branch.
  • z

    ziggy

    03/09/2023, 7:56 PM
    Does anyone know if you can run
    sudo puppet lookup foo --explain --compile --node foo.domain.internal
    against a non-default hiera.yaml file?
  • z

    ziggy

    03/09/2023, 7:57 PM
    perhaps just something in my local dir
  • v

    vchepkov

    03/09/2023, 7:59 PM
    That would inherit some of your environment variables try
    sudo -i puppet ...
  • z

    ziggy

    03/09/2023, 8:00 PM
    that returns
    Error: Cached facts for foo failed: Could not find terminus puppetdb for indirection facts
  • z

    ziggy

    03/09/2023, 8:00 PM
    that returns
    Error: Cached facts for foo failed: Could not find terminus puppetdb for indirection facts
  • v

    vchepkov

    03/09/2023, 8:02 PM
    WFM ¯\_(ツ)_/¯
  • z

    ziggy

    03/09/2023, 8:03 PM
    The only reason I am asking about this is because if I run as is. I get.
    Copy code
    Warning: /etc/puppetlabs/code/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
       (file: /etc/puppetlabs/code/hiera.yaml)
     . .  etc
    But we dont use that file so it shouldnt even be looking at it.
  • z

    ziggy

    03/09/2023, 8:03 PM
    we use the hiera.yaml in our puppet-control repo
  • v

    vchepkov

    03/09/2023, 8:04 PM
    what does
    sudo -i puppet config print hiera_config
    say
  • z

    ziggy

    03/09/2023, 8:05 PM
    /etc/puppetlabs/code/hiera.yaml
  • z

    ziggy

    03/09/2023, 8:05 PM
    /etc/puppetlabs/code/hiera.yaml
  • v

    vchepkov

    03/09/2023, 8:05 PM
    here you go
  • z

    ziggy

    03/09/2023, 8:05 PM
    right. so how can I change that
  • v

    vchepkov

    03/09/2023, 8:06 PM
    puppet config delete hiera_config will set it to default
  • v

    vchepkov

    03/09/2023, 8:06 PM
    it should be
    /etc/puppetlabs/puppet/hiera.yaml
  • z

    ziggy

    03/09/2023, 8:07 PM
    I want it to be
    /etc/puppetlabs/code/environments/production/hiera.yaml
  • z

    ziggy

    03/09/2023, 8:07 PM
    that is our main source of truth
  • v

    vchepkov

    03/09/2023, 8:07 PM
    no, you don't
  • v

    vchepkov

    03/09/2023, 8:08 PM
    puppet uses global/environmental/module hiera
  • z

    ziggy

    03/09/2023, 8:08 PM
    oh ok
  • v

    vchepkov

    03/09/2023, 8:08 PM
    if you don't want global, sanitize it
  • z

    ziggy

    03/09/2023, 8:09 PM
    I just want the puppet lookup command to go against what we have in our code repo vs what we have as the default. Otherwise lookup wont work (the command). Puppet agent runs are fine
  • z

    ziggy

    03/09/2023, 8:09 PM
    I just want the puppet lookup command to go against what we have in our code repo vs what we have as the default. Otherwise lookup wont work (the command). Puppet agent runs are fine
  • v

    vchepkov

    03/09/2023, 8:10 PM
    and that's fine, set global to default and make /etc/puppetlabs/puppet/hiera.yaml something like that
    Copy code
    ---
    version: 5
    hierarchy: []
  • d

    Dr Bunsen Honeydew

    03/09/2023, 8:10 PM
    ```- took a dive. (Karma: -103)
  • v

    vchepkov

    03/09/2023, 8:10 PM
    so that layer will be empty and puppet will proceed to environment
  • z

    ziggy

    03/09/2023, 8:11 PM
    oh I see
  • z

    ziggy

    03/09/2023, 8:11 PM
    thanks
1...322323324...428Latest