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

    Lumiere

    06/14/2022, 4:58 PM
    include docker instead of class { 'docker': }
  • l

    Lumiere

    06/14/2022, 4:58 PM
    just make sure you only have one place where you configure class docker
  • n

    natemccurdy

    06/14/2022, 4:59 PM
    include docker
    can be done many times per catalog.
    class { 'docker': }
    can only be done once per catalog. And both do essentially the same thing of declaring the
    docker
    class.
  • l

    Lumiere

    06/14/2022, 5:00 PM
    the first is an ordering note more then anything, the second is an explicit configuration (with the defaults) of the docker class's resource
  • l

    Lumiere

    06/14/2022, 5:01 PM
    you can't explicitly declare a resource more then one time, but you can implicitly (with include) say you need it
  • s

    Slackbot

    06/14/2022, 5:54 PM
    This message was deleted.
    a
    g
    • 3
    • 6
  • z

    Zeke Marffy

    06/14/2022, 7:18 PM
    message has been deleted
  • s

    Slackbot

    06/14/2022, 7:56 PM
    This message was deleted.
    s
    z
    • 3
    • 10
  • s

    Slackbot

    06/14/2022, 8:37 PM
    This message was deleted.
    n
    b
    r
    • 4
    • 3
  • r

    rohan gadalkar

    06/15/2022, 7:50 AM
    hello team
  • s

    Slackbot

    06/15/2022, 7:50 AM
    This message was deleted.
    b
    r
    • 3
    • 2
  • r

    rohan gadalkar

    06/15/2022, 7:50 AM
    is it faced by anybody ?
  • s

    Slackbot

    06/15/2022, 8:53 AM
    This message was deleted.
    n
    b
    • 3
    • 36
  • n

    Neeloj

    06/15/2022, 11:49 AM
    one last question @bastelfreak I want to upgrade the puppet server but Im still on version 6.19.0 but I have to upgrade to 6.22.0 do I have to download the .deb file again ? https://puppet.com/docs/puppet/6/upgrade_minor.html#upgrade_puppet_server
  • s

    Slackbot

    06/15/2022, 3:01 PM
    This message was deleted.
    n
    c
    • 3
    • 4
  • s

    Slackbot

    06/15/2022, 4:06 PM
    This message was deleted.
    n
    v
    +3
    • 6
    • 8
  • v

    vchepkov

    06/15/2022, 4:13 PM
    Copy code
    '/etc/pki/ca-trust/source/anchors/corp.pem':
          content => file("${module_name}/corp.pem"),
          notify  => Exec['refresh CA list'],
          require => Package['ca-certificates'],
        ;
    
      exec { 'refresh CA list':
        command     => '/usr/bin/update-ca-trust extract',
        refreshonly => true,
      }
  • s

    Slackbot

    06/15/2022, 4:24 PM
    This message was deleted.
    đź‘‹ 1
    e
    • 2
    • 1
  • e

    Elliott Cox

    06/15/2022, 4:43 PM
    message has been deleted
  • s

    Suraj Bora

    06/15/2022, 5:17 PM
    Hi Team, what is best way to add property containing ":" in name using augeas
    Copy code
    augeas {"resource_name":
        incl => "/path/to/file",
        Changes => ['set abc:zvy 4'], 
    }
    I am getting can't evaluate: save file error (can not match tree). I need to update existing file with new line containing properties.
  • s

    Suraj Bora

    06/15/2022, 5:18 PM
    Hi Team, what is best way to add property containing ":" in name using augeas
    Copy code
    augeas {"resource_name":
        incl => "/path/to/file",
        Changes => ['set abc:zvy 4'], 
    }
    I am getting can't evaluate: save file error (can not match tree)
  • s

    Slackbot

    06/15/2022, 5:19 PM
    This message was deleted.
    s
    v
    • 3
    • 15
  • s

    Suraj Bora

    06/15/2022, 5:24 PM
    Hi Team, what is best way to add property containing ":" in name using augeas
    Copy code
    augeas {"resource_name":
        incl => "/path/to/file",
        Changes => ['set abc:zvy 4'], 
    }
    I am getting can't evaluate: save file error (can not match tree). I need to update existing file with new line containing properties.
  • c

    Callum McCrorie

    06/15/2022, 6:12 PM
    I am wondering if someone might be able to help me. I am working with letsencrypt with cloudflare within puppet. The issue I am facing is with the encrypted
    api-token
    I am just not too sure how this all fits together. I have got the claudflare plugin there in a
    .pp
    file. But I am wondering how I link this to Hiera and what I need to include in the
    .eyaml
    file and if I need to change the file dedicated for the node that I wish it to correspond with which is a
    .yaml
    file, do I need to change this file to be
    eyaml
    and add it in there or do I need a new
    .eyaml
    file. I have also added the
    eyaml
    to the
    hiera
    config which looks like this:
    Copy code
    ---
    version: 5
    defaults:
      # The default value for "datadir" is "data" under the same directory as the hiera.yaml
      # file (this file)
      # When specifying a datadir, make sure the directory exists.
      # See <https://puppet.com/docs/puppet/latest/environments_about.html> for further details on environments.
      # datadir: data
      # data_hash: yaml_data
    hierarchy:
      - name: "Secret data: per-node, per-datacenter, common"
        lookup_key: eyaml_lookup_key # eyaml backend
        paths:
          - "secrets/nodes/%{trusted.certname}.eyaml"  # Include explicit file extension
          - "secrets/location/%{facts.whereami}.eyaml"
          - "common.eyaml"
        options:
          pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
          pkcs7_public_key:  /etc/puppetlabs/puppet/eyaml/public_key.pkcs7.pem
      - name: "Per-node data (yaml version)"
        path: "nodes/%{::trusted.certname}.yaml"
      - name: "application"
        paths:
          - "application/%{facts.eb_facts.application}-%{facts.eb_facts.stage}.yaml"
          - "application/%{facts.eb_facts.application}.yaml"
      - name: "Other YAML hierarchy levels"
        paths:
          - "common.yaml"
    Thank you in advance.
  • d

    Dr Bunsen Honeydew

    06/15/2022, 6:12 PM
    ```- lost a life. (Karma: -69)
  • z

    Zeke Marffy

    06/15/2022, 6:45 PM
    Yep, that's what I meant. I see. So how does one pass in external values into the
    get
    function? Is that even possible? I feel like it should be, but maybe my thought on how to design this is wrong. My provider needs to do queries against something that needs auth. How could I get that in there?
  • c

    Christopher Afeku Junior

    06/15/2022, 7:37 PM
    Hi, I'm trying a puppet setup where I connect Mac devices as agents to an Ubuntu master. It's been giving me a hard time. I'm quite new to puppet and I can't make some headway with the documentation. Does anyone have a documented procedure to help me with this? Any assistance at all would be appreciative as well. Thanks
  • c

    Christopher Afeku Junior

    06/15/2022, 7:51 PM
    Hi, I'm trying a puppet setup where I connect Mac devices as agents to an Ubuntu master. It's been giving me a hard time. I'm quite new to puppet and I can't make some headway with the documentation. Does anyone have a documented procedure to help me with this? Any assistance at all would be appreciative as well. Thanks
  • l

    Lumiere

    06/15/2022, 7:59 PM
    can you give us more information about what is going wrong?
  • c

    Christopher Afeku Junior

    06/16/2022, 12:45 AM
    Command: puppet agent —test Mac Agent Error: certificate verify failed [self signed certificate in certificate chain for CN:puppet CA:puppet] Command: puppet agent —configprint server Response: puppet How can I change that to the ip of the master?
1...646566...428Latest