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

    natemccurdy

    08/19/2022, 6:53 PM
    You need to declare that
    puppetdb::master::config
    class on your compiler as well
  • n

    natemccurdy

    08/19/2022, 6:53 PM
    Cool… so yeah, that’s probably the problem then. If your compiler isn’t configured to talk to PuppetDB, your agents that use that compiler won’t be in PuppetDB.
  • l

    Lumiere

    08/19/2022, 8:23 PM
    @vchepkov ++
  • d

    Dr Bunsen Honeydew

    08/19/2022, 8:23 PM
    vchepkov is on the rise! (Karma: 9)
  • s

    Slackbot

    08/22/2022, 6:07 AM
    This message was deleted.
    b
    k
    a
    • 4
    • 3
  • s

    Slackbot

    08/22/2022, 7:08 AM
    This message was deleted.
    b
    s
    • 3
    • 4
  • s

    sameer

    08/22/2022, 7:12 AM
    Hello, I need some guidance in setting up a pki server. Basically we have a pki server which was manually installed and doesn't have the module and script in the puppet. I have to create a puppet module which can automatically install the pki servers in future and also save the scripts in puppet which can help us recover the server just incase if we loose the server...Thanks
  • b

    bastelfreak

    08/22/2022, 7:19 AM
    for beaker we have https://github.com/voxpupuli/beaker and there is a lot of documentation when you goole 'puppet and beaker'
  • n

    Neeloj

    08/22/2022, 7:30 AM
    hi all, on Windows when I run
    puppet agent -t
    I get below error, does anyone know why? The key for agent is availabel on server:
    PS C:\Users\> puppet agent -t
    Warning: Unable to fetch my node definition, but the agent run will continue:
    Warning: certificate verify failed [unable to get local issuer certificate for C
    N=srv1]
    Info: Retrieving pluginfacts
    Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Failed to generate
    additional resources using 'eval_generate': certificate verify failed [unable t
    o get local issuer certificate for CN=srv1]
    Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Could not evaluate
    : Could not retrieve file metadata for puppet:///pluginfacts: certificate verify
    failed [unable to get local issuer certificate for CN=srv1]
  • s

    Slackbot

    08/22/2022, 7:48 AM
    This message was deleted.
    n
    • 2
    • 2
  • s

    Slackbot

    08/22/2022, 8:16 AM
    This message was deleted.
    k
    • 2
    • 2
  • k

    Karthik Keshav M

    08/22/2022, 9:33 AM
    basically after puppet run catalog is not going to puppetdb
  • b

    B S

    08/22/2022, 9:49 AM
    I deployed (along with puppetseerver and puppetdb) a puppetboard using the official puppetserver-helmchart. If I try to open / on that host, I get a 404 and according to the logs of the puppetboard container, it's from that container: 10.42.0.2 - - [22/Aug/20220947:05 +0000] "GET / HTTP/1.1" 404 232 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" Do I have to use a prefix or something? Do I maybe need stuff in my puppetdb first?
  • b

    B S

    08/22/2022, 9:49 AM
    I deployed (along with puppetseerver and puppetdb) a puppetboard using the official puppetserver-helmchart. If I try to open / on that host, I get a 404 and according to the logs of the puppetboard container, it's from that container: 10.42.0.2 - - [22/Aug/20220947:05 +0000] "GET / HTTP/1.1" 404 232 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" Do I have to use a prefix or something?
  • b

    B S

    08/22/2022, 9:54 AM
    I deployed (along with puppetseerver and puppetdb) a puppetboard using the official puppetserver-helmchart. If I try to open / on that host, I get a 404 and according to the logs of the puppetboard container, it's from that container: 10.42.0.2 - - [22/Aug/20220947:05 +0000] "GET / HTTP/1.1" 404 232 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" Do I have to use a prefix or something? Do I maybe need stuff in my puppetdb first?
  • s

    Slackbot

    08/22/2022, 11:12 AM
    This message was deleted.
    t
    m
    • 3
    • 12
  • s

    Skylar Thompson

    08/22/2022, 6:12 PM
    Another exported resource question - I'm trying to setup monitoring for a host with multiple services. In some cases the host name isn't something Puppet can a priori know (i.e. isn't based on
    certname
    or an IP address binding returned by
    facter
    ) but might be shared by multiple applications. For instance, we might have a node Puppet knows as
    <http://foo.example.com|foo.example.com>
    that has a CNAME
    <http://bar.example.com|bar.example.com>
    our customers would know, with (say) both HTTP and PostgreSQL services we would like to monitor. My first thought is that we should export a host resource for
    <http://bar.example.com|bar.example.com>
    to our monitoring system, and then one service resource for each of the HTTP and PostgreSQL services, and have our monitoring system collect those resources. The problem is that both the HTTP and PostgreSQL classes need to export this host resource without causing a duplicate declaration. My understanding of exported resources is that I can't test the catalog of the exporting node since the resource would only exist in PuppetDB, and the catalog of the collecting node after collection. If this is wrong, please correct me. 🙂 I had a thought that I could query PuppetDB before export to see if that resource exists, for instance:
    Copy code
    $r = puppetdb_query('resources{ type = "Profile::Monitoring::Host" and title = "<http://bar.example.com|bar.example.com>" and exported = true}')
  • s

    Skylar Thompson

    08/22/2022, 6:13 PM
    And if the array
    $r
    is empty, then I know it's safe to export the resource. If it's not empty, then it's already been exported and doesn't have to be exported again. The problem is that I'm still getting a duplicate resource error, so this query or test doesn't seem to be working. Is this close to what I should be doing, or is there a better way to do it?
  • v

    vchepkov

    08/22/2022, 6:17 PM
    https://forge.puppet.com/modules/WhatsARanjit/share_data
    🙌🏼 1
  • v

    vchepkov

    08/22/2022, 6:17 PM
    could be useful
  • v

    vchepkov

    08/22/2022, 6:17 PM
    could be useful
  • s

    Skylar Thompson

    08/22/2022, 6:18 PM
    Interesting... Is the trick that it's wrapping the exported resource in a non-exported resource on the exporting node?
  • v

    vchepkov

    08/22/2022, 6:20 PM
    yeah, allows you to share, whatever 🙂
  • s

    Skylar Thompson

    08/22/2022, 6:25 PM
    Brilliant, it works! Even had the wrapper type already, not sure why I thought it had to be exported too. Thanks!
    👍 1
  • l

    Les Shiner

    08/22/2022, 7:10 PM
    stupid question but... can't seem to find a way to upgrade r10k on ubuntu, any advice? I originally installed it manually, but am now trying to manage it by puppetfile
  • v

    vchepkov

    08/22/2022, 7:11 PM
    https://github.com/voxpupuli/puppet-r10k/blob/master/manifests/init.pp#L7
  • v

    vchepkov

    08/22/2022, 7:11 PM
    https://github.com/voxpupuli/puppet-r10k/blob/master/manifests/init.pp#L7
  • c

    CVQuesty

    08/22/2022, 7:12 PM
    beat me to it. It’s even in my clipboard
  • c

    CVQuesty

    08/22/2022, 7:12 PM
    https://github.com/voxpupuli/puppet-r10k/blob/master/manifests/init.pp#L7
  • c

    CVQuesty

    08/22/2022, 7:12 PM
    https://github.com/voxpupuli/puppet-r10k/blob/master/manifests/init.pp#L7
1...138139140...428Latest