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

    Aaron Russo

    10/31/2022, 8:23 PM
    That might work. I'll give that a shot.
  • b

    bastelfreak

    10/31/2022, 8:24 PM
    that works for sure
  • b

    bastelfreak

    10/31/2022, 8:24 PM
    and if all nodes with that profile get the same config, you can omit hiera completely for the gitlab_runner
  • a

    Aaron Russo

    10/31/2022, 8:25 PM
    They wont, we'll have some variations amongst our runners unfortunately.
  • b

    bastelfreak

    10/31/2022, 8:28 PM
    okay, then hiera is perfectly fine
  • a

    Aaron Russo

    10/31/2022, 9:27 PM
    This doesn't seem to work. I suspect because the content is rendered server side here: https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/master/manifests/config.pp#L50 So unless the config was further broken up to allow for a dedicated fragment for each runner registration token, im not sure this can support being deferred.
  • a

    Aaron Russo

    10/31/2022, 9:27 PM
    This doesn't seem to work. I suspect because the content is rendered server side here: https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/master/manifests/config.pp#L50 So unless the config was further broken up to allow for a dedicated fragment for each runner registration token, im not sure this can support being deferred.
  • a

    Aaron Russo

    10/31/2022, 9:33 PM
    Actually, that's the global config. But shouldn't this line cause it to defer the to_toml. Is the key wrong here though (should it be registration-token)? https://github.com/voxpupuli/puppet-gitlab_ci_runner/blob/master/manifests/runner.pp#L107
  • s

    Slackbot

    11/01/2022, 9:35 AM
    This message was deleted.
    s
    • 2
    • 1
  • s

    Slackbot

    11/01/2022, 9:40 AM
    This message was deleted.
    t
    s
    b
    • 4
    • 6
  • s

    Slackbot

    11/01/2022, 9:47 AM
    This message was deleted.
    r
    g
    +2
    • 5
    • 11
  • s

    Slackbot

    11/01/2022, 1:49 PM
    This message was deleted.
    t
    r
    • 3
    • 2
  • s

    Slackbot

    11/01/2022, 4:38 PM
    This message was deleted.
    d
    n
    j
    • 4
    • 16
  • j

    Joel Wilson

    11/01/2022, 4:38 PM
    Anyone have any thoughts or experience on this?
  • n

    natemccurdy

    11/01/2022, 4:51 PM
    Testing roles and profiles does usually come down to testing the role class. A tool called Onceover was written to facilitate that: https://github.com/dylanratcliffe/onceover
  • s

    Slackbot

    11/01/2022, 6:07 PM
    This message was deleted.
    w
    d
    +2
    • 5
    • 39
  • r

    ripienaar

    11/01/2022, 6:23 PM
    typically we cant answer your questions witout details, so where (the file path) on disk where you placed the module that it says it cant find. What is in it, how you set where your modules live etc
  • d

    David Sandilands

    11/01/2022, 6:39 PM
    People do both. I've tended to seen more in the control repo where the code has a single owning team and there is less concern about scope and ownership rights for changes to code. Some orgs like to keep very little in their control repo since editing it can affect which modules are available and versioning. They want to ensure they can only affect the module they are updating.
  • b

    binford2k

    11/01/2022, 6:44 PM
    message has been deleted
  • b

    binford2k

    11/01/2022, 6:44 PM
    message has been deleted
  • b

    binford2k

    11/01/2022, 6:44 PM
    message has been deleted
  • b

    binford2k

    11/01/2022, 6:46 PM
    message has been deleted
  • s

    Slackbot

    11/02/2022, 7:18 AM
    This message was deleted.
    a
    s
    +2
    • 5
    • 8
  • s

    Sinan

    11/02/2022, 7:23 AM
    I have the following data:
    Copy code
    days:
      'Day Sunday':
        - 'Go to US'
      'Day Monday':
        - 'Back to US'
      'Day Tuesday':
        - 'Almost Wednesday'
    Now I want to show
    'Almost Wednesday'
    by doing something like:
    lookup(days)['Day Tuesday']
    I am new to Puppet, especially to working with data. Who can guide me in the right direction? What is the correct way of defining the data (array, hash, something else, how is it called?) and how to look up that data?
  • a

    Aaron Russo

    11/02/2022, 7:27 AM
    Unless you want each day to be an array, you probably want something like:
    Copy code
    days:
      'Day Sunday': 'Go to US'
      'Day Monday': 'Back to US'
      'Day Tuesday': 'Almost Wednesday'
  • j

    John Bond

    11/02/2022, 10:15 AM
    one of the following?
    Copy code
    puppet apply file.pp 
    puppet apply -e "notice(lookup('days')['Day Tuesday'][0])"
    if also recommend https://github.com/nwops/puppet-debugger
  • j

    John Bond

    11/02/2022, 10:16 AM
    one of the following?
    Copy code
    puppet apply file.pp 
    puppet apply -e "notice(lookup('days')['Day Tuesday'][0])"
    if also recommend https://github.com/nwops/puppet-debugger
  • s

    sameer

    11/02/2022, 1:03 PM
    Hello , I am getting this error after i ran puppet agent
    Error: Could not set 'file' on ensure: No such file or directory - A directory component in /etc/icinga2/check_vmware.cfg20221102-86199-1y2ahnh.lock does not exist or is a dangling symbolic link (file: /etc/puppetlabs/code/environments/production/modules/monitoring/manifests/init.pp, line: 18)
    Copy code
    file { '/etc/icinga2/check_vmware.cfg':
        ensure => 'file',
        owner  => 'nagios',
        group  => 'nagios',
        mode   => '0750',
        source => 'puppet:///modules/monitoring/check_vmware.cfg',
      }
  • s

    Slackbot

    11/02/2022, 1:05 PM
    This message was deleted.
    s
    y
    • 3
    • 6
  • s

    sameer

    11/02/2022, 1:09 PM
    message has been deleted
1...223224225...428Latest