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

    William Myers

    11/12/2022, 1:10 AM
    I'm sure it will work on later but
  • w

    William Myers

    11/12/2022, 1:10 AM
    message has been deleted
  • y

    Yury Bushmelev

    11/12/2022, 5:08 AM
    This task is for Puppet Bolt if you’d like to stay within puppet ecosystem I’d say. Choria.io can do the trick as well I believe
  • w

    William Myers

    11/12/2022, 7:14 PM
    Thanks! I need to become more familiar with bolt anyway.
  • s

    Slackbot

    11/12/2022, 11:13 PM
    This message was deleted.
    r
    w
    s
    • 4
    • 6
  • w

    William Myers

    11/12/2022, 11:15 PM
    message has been deleted
  • w

    William Myers

    11/13/2022, 4:38 AM
    I can do module level hiera for hosts but worry about scalability and troubleshooting and future debug-ability. Bigger concern is when there's cross module dependencies or trying to test under prod like circumstances which can be hard without a clone of the whole environment, rolling back site level config, etc.
  • w

    William Myers

    11/13/2022, 4:44 AM
    message has been deleted
  • w

    William Myers

    11/13/2022, 4:45 AM
    Without PE, is r10k the primary method of having a control repo? And when one says control repo are they implying that modules are installed as code (puppetfile), it contains site level hiera, etc? I have a really good grasp of how r10k works and use it personally and am currently in the process of trying to sell it at work.
  • w

    William Myers

    11/13/2022, 10:16 PM
    message has been deleted
  • s

    Slackbot

    11/14/2022, 3:26 AM
    This message was deleted.
    w
    y
    • 3
    • 7
  • s

    sh6624gsj8

    11/14/2022, 8:37 AM
    Hello , I am new to Arrays in puppet and had a question regarding that - I have a class named
    javaopts.pp
    which would only add specific java options to my file when a list of IPs is passed
    Copy code
    class my_cassandra::javaopts (
      $replace_dead_node,
      $config_path             = $my_cassandra::config_path
    ) {
      if !empty($replace_dead_node) {
        file_line { 'java-replace-dead-node':
          path               => "${config_path}/cassandra-env.sh",
          line               => "JVM_OPTS=\"\$JVM_OPTS -Dcassandra.replace_address_first_boot=${$replace_dead_node}\"",
          match              => 'JVM_OPTS="\$JVM_OPTS -Dcassandra.replace_address_first_boot=.*',
          append_on_no_match => true,
        }
      }
    }
    and in my
    init.pp
    I have initialised my variable as :-
    Copy code
    Array[String]           $replace_dead_node        = $my_cassandra::replace_dead_node,
    and I am trying to lookup the value from hiera (
    default.yaml
    ) as :-
    Copy code
    my_cassandra::replace_dead_node:
      - 10.111.120.156
    However , I get the below error as :-
    Class[My_cassandra]: parameter 'replace_dead_node' expects an Array value, got String
    Could someone help me clarify what am I missing ?
  • s

    Slackbot

    11/14/2022, 8:39 AM
    This message was deleted.
    s
    r
    • 3
    • 23
  • s

    sh6624gsj8

    11/14/2022, 8:41 AM
    message has been deleted
  • s

    sh6624gsj8

    11/14/2022, 9:48 AM
    message has been deleted
  • g

    Ganaparthi Nikhil

    11/14/2022, 10:43 AM
    message has been deleted
  • r

    rnelson0

    11/14/2022, 1:09 PM
    And while there’s plenty of descriptive and prescriptive guides on what a controlrepo should look like, the real essence of a controlrepo is nothing more than “version control system repository that contains your puppet code.” You’ll end up with one no matter what, even if yours looks different, by its universal nature.
  • w

    William Myers

    11/14/2022, 5:22 PM
    I'm having this problem with both AlmaLinux 8 and Ubuntu 20.04
  • w

    William Myers

    11/14/2022, 6:20 PM
    I'm having issues where bolt tasks are failing to create the custom tmpdir within /var/cache, citing permission issues however I can run a mkdir command via bolt to create directories within /var/cache without issue?
  • w

    William Myers

    11/14/2022, 6:20 PM
    I'm having issues where bolt tasks are failing to create the custom tmpdir within /var/cache, citing permission issues however I can run a mkdir command to create directories within /var/cache without issue?
  • w

    William Myers

    11/14/2022, 6:21 PM
    I'm having issues where bolt tasks are failing to create the custom tmpdir within /var/cache, citing permission issues however I can run a mkdir command via bolt to create directories within /var/cache without issue?
  • y

    Yorokobi

    11/14/2022, 6:22 PM
    I would try
    /var/tmp
  • w

    William Myers

    11/14/2022, 6:23 PM
    That's also noexec
  • w

    William Myers

    11/14/2022, 6:23 PM
    Per CIS guidelines
  • y

    Yorokobi

    11/14/2022, 6:24 PM
    When did CIS add noexec to var/tmp? sigh Now I need to look over it again ...
  • w

    William Myers

    11/14/2022, 6:24 PM
    let me double check my fstab
  • w

    William Myers

    11/14/2022, 6:25 PM
    yeah, https://secscan.acron.pl/centos7/1/1/10
  • y

    Yorokobi

    11/14/2022, 6:26 PM
    1.1.10 is ooooooolld
  • w

    William Myers

    11/14/2022, 6:26 PM
    i know, it was just the first thing that came up with google.
  • y

    Yorokobi

    11/14/2022, 6:26 PM
    But yeah, the 3.1.1 has noexec for /var/tmp, too.
1...233234235...428Latest