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

    Slackbot

    03/08/2023, 4:19 PM
    This message was deleted.
    v
    n
    • 3
    • 4
  • o

    Olmo

    03/08/2023, 4:45 PM
    i am trying a puppet7 upgrade and i have a situation where i run 3 consecutive puppetruns (there is only 1 puppetmaster atm) with 3 different behaviours, 3time it runs. 1: [root@te-mdp-ords0101 ~]# puppet agent --enable; puppet agent --test --server puppet.blaat --serverport 8140 --ca_port 8140 --environment test; puppet agent --disable "testing puppet" Info: Using environment 'test' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/network_config: Could not autoload puppet/provider/network_config/interfaces: no such file to load -- puppetx/filemapper (file: /etc/puppetlabs/code/environments/test/modules/network/manifests/init.pp, line: 79, column: 28) on node te-mdp-ords0101.blaat Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run 2: [root@te-mdp-ords0101 ~]# puppet agent --enable; puppet agent --test --server puppet.blaat --serverport 8140 --ca_port 8140 --environment test; puppet agent --disable "testing puppet" Info: Using environment 'test' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/archive: Could not autoload puppet/provider/archive/curl: Could not autoload puppet/provider/archive/ruby: Unable to find archive module in modulepath /etc/puppetlabs/code/environments/common/etc/puppetlabs/code/modules/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules (file: /etc/puppetlabs/code/environments/test/site/profile/manifests/oracle/ords.pp, line: 127, column: 3) on node te-mdp-ords0101.blaat Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run [root@te-mdp-ords0101 ~]# puppet agent --enable; puppet agent --test --server puppet.blaat --serverport 8140 --ca_port 8140 --environment test; puppet agent --disable "testing puppet" Info: Using environment 'test' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for te-mdp-ords0101.blaat Info: Applying configuration version '1678293637' Notice: I am: te-mdp-ords0101.blaat, number: 1 of role: ords, using role_conf: ords_0101 of product_type: mdp in environment: staging, in datacenter: fr2 (puppet7-old-foreman i have latest archive and filemapper module [root@pr-infra-puppet0201 test]# puppet module list --tree --modulepath modules | grep "filemapper\|archive" 2>/dev/null │ └── puppet-archive (v6.1.1) │ ├── puppet-filemapper (v3.1.0)
  • c

    Corporate Gadfly

    03/08/2023, 6:42 PM
    Hi all, Do I have the syntax for ignoring lint correct?
    Copy code
    file { '/opt/victoriametrics/tls':
        ensure  => present, # lint:ignore:file_ensure-check
        owner   => victoriametrics,
        group   => victoriametrics,
        require => Accounts::User['victoriametrics'],
      }
    pdk validate
    complains with:
    Copy code
    pdk (WARNING): puppet-lint: ensure set to present on file resource (manifests/monitor/vm_common.pp:24:16)
  • c

    Corporate Gadfly

    03/08/2023, 6:43 PM
    Hi all, Do I have the syntax for ignoring lint correct?
    Copy code
    file { '/opt/victoriametrics/tls':
        ensure  => present, # lint:ignore:file_ensure-check
        owner   => victoriametrics,
        group   => victoriametrics,
        require => Accounts::User['victoriametrics'],
      }
    pdk validate
    complains with:
    Copy code
    pdk (WARNING): puppet-lint: ensure set to present on file resource (manifests/monitor/vm_common.pp:24:16)
  • s

    Slackbot

    03/08/2023, 6:44 PM
    This message was deleted.
    c
    d
    • 3
    • 3
  • v

    vchepkov

    03/08/2023, 6:45 PM
    Copy code
    # lint:ignore:file_ensure
    💯 1
  • s

    Slackbot

    03/08/2023, 7:22 PM
    This message was deleted.
    y
    l
    +2
    • 5
    • 36
  • s

    Slackbot

    03/08/2023, 7:32 PM
    This message was deleted.
    y
    r
    • 3
    • 13
  • b

    binford2k

    03/08/2023, 7:33 PM
    example:
    Copy code
    package { 'apache2':
      ensure => present,
  • b

    binford2k

    03/08/2023, 7:33 PM
    example:
    Copy code
    package { 'apache2':
      ensure => present,
    }
  • n

    natemccurdy

    03/08/2023, 7:42 PM
    Copy code
    package { 'openssh':
      ensure   => present,
      provider => 'chocolately',
    }
    
    service { 'ssh-agent':
      ensure  => running,
      enable  => true,
      require => Package['openssh'],
    }
    
    service { 'sshd':
      ensure  => running,
      enable  => true,
      require => Package['openssh'],
    }
  • y

    Yury Bushmelev

    03/08/2023, 7:44 PM
    stupid question.. is the environment right? are changes deployed to the environment directory on a puppet server?
  • b

    binford2k

    03/08/2023, 8:07 PM
    https://fosstodon.org/@puppet/109989430018683501
    💯 1
  • s

    Slackbot

    03/09/2023, 1:31 AM
    This message was deleted.
    voxpupuli 2
    ❤️ 3
    k
    b
    • 3
    • 9
  • g

    gary

    03/09/2023, 8:40 AM
    Anyone know why https://github.com/GoogleCloudPlatform/google-cloud-ops-agents-puppet was archived?
  • g

    gary

    03/09/2023, 8:40 AM
    Anyone know why https://github.com/GoogleCloudPlatform/google-cloud-ops-agents-puppet was archived?
  • y

    Yury Bushmelev

    03/09/2023, 11:11 AM
    I don’t really remember tbh.. I’d suggest you to wipe caches on the server and the nodes
  • d

    Dr Bunsen Honeydew

    03/09/2023, 12:45 PM
    fry dancing 🧑‍🏫Puppet Forge is about to start up in #CFD8Z9A4T
  • m

    mrosedale

    03/09/2023, 2:04 PM
    I'm doing a new resource type and I started to get this error
    Copy code
    Error: /Stage[main]/Vx_nginx::Config/Resources[etcd_key]: Failed to generate additional resources using 'generate': Provider vx_service_discovery has not defined the 'instances' class method
    Anyone know what the instances class method is?
  • p

    Pinky

    03/09/2023, 3:12 PM
    Hey, is it possible to lookup hiera data for another node inside of puppet code? I'm setting config parameter for a few hosts via Hiera and am trying to use those params in other hosts. e.g setting a password for host1 via Hiera and trying to generate a config for host2 with the password from host1. A way to accomplish that?
  • s

    Slackbot

    03/09/2023, 3:20 PM
    This message was deleted.
    this 1
    m
    p
    • 3
    • 3
  • s

    Slackbot

    03/09/2023, 3:34 PM
    This message was deleted.
    h
    b
    • 3
    • 4
  • p

    Pinky

    03/09/2023, 3:40 PM
    I forgot to mention that both hosts (in total more than just those two) use different password. Each host has its own unique password set via hiera. So i would have to set it like this inside my role.yaml:
    Copy code
    profile_xyz::host1_pw: 'password111'
    profile_xyz::host2_pw: 'password222'
    host1 should use a lookup on host2s pw and vice versa. Is that also possible with that common yaml file?
  • s

    Slackbot

    03/09/2023, 3:48 PM
    This message was deleted.
    t
    d
    l
    • 4
    • 4
  • s

    Slackbot

    03/09/2023, 4:59 PM
    This message was deleted.
    b
    b
    b
    • 4
    • 6
  • w

    wil.rodriguez

    03/09/2023, 5:57 PM
    message has been deleted
  • w

    wil.rodriguez

    03/09/2023, 5:57 PM
    This is puppetserver 7. But, I did manage to get to the point where I no longer get that error, I just had to create
    /etc/puppetlabs/puppetdb/ssl
    and symlink to my puppet agent certs. Now I just have the problem that puppetdb won't start up and it gives me this error:
    Copy code
    java.lang.IllegalArgumentException: Missing some SSL configuration; must provide either :ssl-cert, :ssl-key, and :ssl-ca-
    cert, OR :truststore, :trust-password, :keystore, and :key-password.
    If only I knew where it wanted that specified.
  • v

    vchepkov

    03/09/2023, 6:03 PM
    I have my opinionated Vagrant environment you can take a look for inspirations 🙂 https://github.com/vchepkov/puppet-bootstrap
  • d

    Dr Bunsen Honeydew

    03/09/2023, 6:45 PM
    beaker _🙋 Jira Cloud migration questions_ is about to start up in #CFD8Z9A4T
  • s

    Skylar Thompson

    03/09/2023, 6:46 PM
    OK, I've tracked this down.
    components
    is set from
    module_path
    , which is the combination of the path to the
    modules
    directory in
    fixture_path
    and the contents of the
    MODULEPATH
    environment variable. I'm not totally sure what
    MODULEPATH
    is used for in the context of `pdk`/`rspec` but it's also used by
    environment-modules
    , which provides a way of making scalable changes to user shell environments via Tcl scripts. The problem is that the
    environment-modules
    shell profile adds this to `MODULEPATH`:
    /usr/share/modules/$MODULE_VERSION/modulefiles
    For
    environment-modules
    ,
    MODULEPATH
    is used within Tcl and not shell, and
    $MODULE_VERSION
    is interpolated by Tcl based on the value of that Tcl variable. Within
    module_spec_helper.rb
    , though, the block that produces the components array interprets it literally and discards it, but
    collect
    will set a value to
    nil
    if nothing else is returned by that iteration. I think the quickest fix will be to have a
    reject
    filter that produces an array that has no
    nil
    values in it.
1...321322323...428Latest