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

    smortex

    10/16/2022, 8:25 PM
    The error comme when is loads the reports termini
  • s

    smortex

    10/16/2022, 8:25 PM
    just set
    reports = puppetdb
    and it should be fine
  • s

    smortex

    10/16/2022, 8:26 PM
    the puppetdb termini might need extra config to reach puppetdb if it is running on another node but this takes place in
    puppet/puppetdb.conf
    (note the
    db
    )
  • s

    smortex

    10/16/2022, 8:27 PM
    https://puppet.com/docs/puppetdb/7/connect_puppet_server.html#1-edit-puppetdbconf
  • n

    NotStrong

    10/16/2022, 8:32 PM
    message has been deleted
  • n

    NotStrong

    10/16/2022, 8:48 PM
    OK, i rename all too puppetdb. i have a "new" error. maybe a certificate error.
    Copy code
    2022-10-16T22:45:51.636+02:00 WARN  [qtp1161355795-58] [c.p.h.c.i.PersistentSyncHttpClient] Error executing http request
    javax.net.ssl.SSLPeerUnverifiedException: Host name 'puppetdb' does not match the certificate subject provided by the peer (CN=testpuppetserver1)
    |
    Copy code
    2022-10-16T22:45:51.642+02:00 WARN  [qtp1161355795-58] [puppetserver] Puppet Error connecting to puppetdb on 8081 at route <https://puppetdb:8081/pdb/cmd/v1?checksum=fdd42975a3eb239a>
    c62f82646f09ddfb424c6e96&version=8&certname=testpuppetserver1&command=store_report&producer-timestamp=2022-10-16T20:45:51.586Z, error message received was 'Error executing http requ
    est'. Failing over to the next PuppetDB server_url in the 'server_urls' list
  • m

    Matthew Chan

    10/17/2022, 12:31 PM
    message has been deleted
  • s

    Slackbot

    10/17/2022, 12:32 PM
    This message was deleted.
    b
    m
    +2
    • 5
    • 56
  • b

    bastelfreak

    10/17/2022, 12:40 PM
    what happens if you restart the service?
  • p

    Puli Hari Krishna

    10/17/2022, 2:14 PM
    Hello, Any idea or suggestions on configuring puppet master on the cloudflare over a reverse proxy?
  • m

    Marty Ewings

    10/17/2022, 2:17 PM
    like if you wait 1.5* run_interval is it still running?
  • m

    Marty Ewings

    10/17/2022, 2:21 PM
    ill try and reproduce, thinking of possibilities out loud: Is it possible the User the daemon initially was running as , is different than the user you ran the --disable with, and the subsequent service restart?
  • m

    Marty Ewings

    10/17/2022, 2:35 PM
    try sudo
    /opt/puppetlabs/puppet/bin/puppet agent --disable
  • m

    Marty Ewings

    10/17/2022, 2:36 PM
    what ever the user context of the daemon the lock would need to end up here: /opt/puppetlabs/puppet/cache/state/agent_disabled.lock
  • m

    Marty Ewings

    10/17/2022, 2:36 PM
    what ever the user context of the daemon the lock would need to end up here: /opt/puppetlabs/puppet/cache/state/agent_disabled.lock and not /home/user/.puppetlabs/opt/puppet/cache/state/agent_disabled.lock
  • m

    Marty Ewings

    10/17/2022, 2:37 PM
    if the user context of the daemon is root the lock would need to end up here: /opt/puppetlabs/puppet/cache/state/agent_disabled.lock and not /home/user/.puppetlabs/opt/puppet/cache/state/agent_disabled.lock
  • p

    Pierfrancesco Aiello

    10/17/2022, 3:07 PM
    quick question. can I put templates in subfolders of the template folder? Like
    templates/projectX/template.epp
    and then call in the puppet code
    epp('module/projectX/template.epp')
    ?
  • s

    Slackbot

    10/17/2022, 3:09 PM
    This message was deleted.
    p
    v
    • 3
    • 3
  • s

    Slackbot

    10/17/2022, 3:59 PM
    This message was deleted.
    w
    c
    • 3
    • 2
  • b

    Brian Schonecker

    10/17/2022, 4:54 PM
    message has been deleted
  • b

    Brian Schonecker

    10/17/2022, 4:55 PM
    message has been deleted
  • s

    Slackbot

    10/17/2022, 4:57 PM
    This message was deleted.
    h
    b
    +4
    • 7
    • 27
  • b

    Brian Schonecker

    10/17/2022, 4:59 PM
    I'm looking for ideas on how to put a .bash_profile file resource in the $HOME directory of a user on Linux. /home/${user} will work most times but I do have some special-needs user accounts that have a home directory located elsewhere on the file system. I could write a custom fact that parses the /etc/passwd file but that would work only for existing users. My puppet manifest will create a new user in a non-standard home directory location and then the .bash_profile file needs to be managed. Any suggestions welcome.
  • b

    Brian Schonecker

    10/17/2022, 4:59 PM
    I'm looking for ideas on how to put a .bash_profile file resource in the $HOME directory of a user on Linux. /home/${user} will work most times but I do have some special-needs user accounts that have a home directory located elsewhere on the file system. I could write a custom fact that parses the /etc/passwd file but that would work only for existing users. My puppet manifest will create a new user in a non-standard home directory location and then the .bash_profile file needs to be managed. Any suggestions welcome. I found this but I'm not yet sure how to implement it.
  • b

    Brian Schonecker

    10/17/2022, 4:59 PM
    I'm looking for ideas on how to put a .bash_profile file resource in the $HOME directory of a user on Linux. /home/${user} will work most times but I do have some special-needs user accounts that have a home directory located elsewhere on the file system. I could write a custom fact that parses the /etc/passwd file but that would work only for existing users. My puppet manifest will create a new user in a non-standard home directory location and then the .bash_profile file needs to be managed. Any suggestions welcome. I found this but I'm not yet sure how to implement it.
  • b

    Brian Schonecker

    10/17/2022, 5:04 PM
    I'm looking for ideas on how to put a .bash_profile file resource in the $HOME directory of a user on Linux. /home/${user} will work most times but I do have some special-needs user accounts that have a home directory located elsewhere on the file system. I could write a custom fact that parses the /etc/passwd file but that would work only for existing users. My puppet manifest will create a new user in a non-standard home directory location and then the .bash_profile file needs to be managed. Any suggestions welcome. I found this but I'm not yet sure how to implement it. I think a downside to the user_home_directory fact is that the user must exist at the time of compilation.
  • h

    helindbe

    10/17/2022, 5:20 PM
    and
    Copy code
    function mymodule::homedir(Hash $userdata) String {
      if $userdata['specialhome'] {
        $userdata['specialhome']
      else {
         "/home/${userdata['user']"
      }
    }
  • h

    helindbe

    10/17/2022, 5:26 PM
    and
    Copy code
    function mymodule::homedir(Hash $userdata) String {
      if $userdata['specialhome'] {
        $userdata['specialhome']
      else {
         "/home/${userdata['user']}"
      }
    }
  • b

    binford2k

    10/17/2022, 6:34 PM
    but before you go writing your own, you should take a look at this and see how much of it is already covered. https://github.com/puppetlabs/puppetlabs-accounts/blob/main/manifests/user.pp
  • s

    Slackbot

    10/17/2022, 8:35 PM
    This message was deleted.
    h
    t
    • 3
    • 2
1...202203204...428Latest