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

    Yury Bushmelev

    04/02/2023, 1:14 PM
    https://www.puppet.com/docs/puppet/7/the_roles_and_profiles_method.html
  • y

    Yury Bushmelev

    04/02/2023, 1:16 PM
    I have something like this implemented here: https://github.com/jay7x/puppetbolt-control_repo/tree/main/site-modules
  • y

    Yury Bushmelev

    04/02/2023, 1:17 PM
    though there are just 2 roles and few profiles (this is an example repo)
  • n

    Nathan

    04/02/2023, 1:38 PM
    Thanks, will check it out!
  • a

    Animesh Sahu

    04/02/2023, 4:22 PM
    message has been deleted
  • s

    Slackbot

    04/02/2023, 6:28 PM
    This message was deleted.
    a
    r
    • 3
    • 3
  • r

    ramindk

    04/02/2023, 6:34 PM
    It is not. Puppet is parsing the key name to match classes and parameters. Example below
    Copy code
    system::grub::timeout: 1
    
    class system::grub(
      $timeout,
    ) {
    You've created a hash where it's impossible to do that parsing. Is it a hash? Is it a set of class params in an hash?
  • r

    ramindk

    04/02/2023, 6:34 PM
    It is not. Puppet is parsing the key name to match classes and parameters. Example below
    Copy code
    system::grub::timeout: 1
    
    class system::grub(
      $timeout,
    ) {
    You've created a hash where it's impossible to do that parsing. Is it a hash? Is it a set of class params in a hash?
  • s

    Slackbot

    04/02/2023, 9:46 PM
    This message was deleted.
    y
    g
    • 3
    • 6
  • y

    Yury Bushmelev

    04/03/2023, 8:25 AM
    There is no magic.. you can think about a “define” (defined resource) as a function. I.e. you can have multiple instances of a defiend resource with different arguments (namevars). A class is just a place where you can manage actual resources (files/services/other defined resources). Something like a “package” or “include” e.g.
  • y

    Yury Bushmelev

    04/03/2023, 8:26 AM
    There is no magic.. you can think about a “define” (defined resource type) as a function. I.e. you can have multiple instances of a defined resource type with different arguments (namevars). A class is just a place where you can manage actual resources (files/services/defined resource types). Something like a “package” or “include” e.g.
  • v

    vchepkov

    04/03/2023, 1:03 PM
    it seems sshkey resource type is not enumerated properly. Is it bug in augeas module or the core module?
    Copy code
    # puppet resource sshkey 
    sshkey { 'github.com@':
      ensure   => 'present',
      key      => 'AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl',
      name     => '<http://github.com|github.com>',
      provider => 'augeas',
      target   => '/etc/ssh/ssh_known_hosts',
    }
    sshkey { 'github.com@ssh-ed25519':
      ensure   => 'present',
      key      => 'AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl',
      name     => '<http://github.com|github.com>',
      provider => 'parsed',
      target   => '/etc/ssh/ssh_known_hosts',
      type     => 'ssh-ed25519',
    }
  • v

    vchepkov

    04/03/2023, 1:18 PM
    the reason I ask, can't purge them idempotently
  • m

    Massimiliano (Max)

    04/03/2023, 1:41 PM
    is anyone using Sensu with Puppet?
  • s

    Slackbot

    04/03/2023, 3:41 PM
    This message was deleted.
    b
    y
    +2
    • 5
    • 56
  • v

    vchepkov

    04/03/2023, 3:42 PM
    return terminates plan execution
  • m

    Marty Ewings

    04/03/2023, 3:42 PM
    notice sorry yeah only copy paste
  • m

    Marty Ewings

    04/03/2023, 3:45 PM
    trying
  • y

    Yury Bushmelev

    04/03/2023, 3:48 PM
    this way you can understand what type it is
  • m

    Marty Ewings

    04/03/2023, 3:49 PM
    https://github.com/MartyEwings/broker_setup_check/blob/main/plans/broker_setup_check.pp
  • m

    Marty Ewings

    04/03/2023, 3:55 PM
    Copy code
    ${result.value}
    is valid, i just cant figure out why notice wont print it, when return does
  • y

    Yury Bushmelev

    04/03/2023, 4:03 PM
    so use
    .filter
    to filter results against a string you want
  • s

    Slackbot

    04/04/2023, 3:53 AM
    This message was deleted.
    g
    t
    r
    • 4
    • 3
  • g

    gary

    04/04/2023, 4:45 AM
    ended up using something like https://github.com/glarizza/puppet-mac_proxy/blob/main/.github/workflows/pdk.yml
  • n

    Neeloj

    04/04/2023, 1:21 PM
    hi all, on puppetserver and in puppetserver.log I have many warnings like below:
    Copy code
    2023-04-04T15:18:08.366+02:00 INFO  [qtp1199995098-66180] [puppetserver] Puppet Computing checksum on string
    2023-04-04T15:18:08.460+02:00 INFO  [qtp1199995098-82054] [puppetserver] Puppet Compiled catalog for srv1.local in environment production in 0.09 seconds
    2023-04-04T15:18:08.792+02:00 WARN  [qtp1199995098-71401] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: srv1.local: During the fact upload the server responded with: 500 Internal Server Error. Error is ignored and the execution continues.
    {
      "error": {"message":"Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs."}
    }
    
    2023-04-04T15:18:08.928+02:00 WARN  [qtp1199995098-82693] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: srv2.local: During the fact upload the server responded with: 500 Internal Server Error. Error is ignored and the execution continues.
    {
      "error": {"message":"Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs."}
    }
    Does anyonw know why? I use of same server foreman too thank you all
  • s

    Slackbot

    04/04/2023, 1:25 PM
    This message was deleted.
    c
    s
    • 3
    • 3
  • s

    Slackbot

    04/04/2023, 1:44 PM
    This message was deleted.
    r
    c
    r
    • 4
    • 3
  • d

    Dr Bunsen Honeydew

    04/04/2023, 1:45 PM
    goodnews Content and Tooling is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    04/04/2023, 3:22 PM
    This message was deleted.
    h
    • 2
    • 1
  • b

    Brian Schonecker

    04/04/2023, 7:43 PM
    message has been deleted
1...341342343...428Latest