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

    David

    05/05/2023, 1:05 PM
    from the readme
  • s

    spp

    05/05/2023, 1:52 PM
    There's some changes coming to puppetlabs-lvm within the quarter. There will probably be a new release "soon".
    👍 1
    this 1
  • d

    Dr Bunsen Honeydew

    05/05/2023, 1:52 PM
    See the
    puppetlabs-lvm
    module at https://forge.puppet.com/puppetlabs/lvm?src=slack&channel=puppet
  • m

    Moe

    05/05/2023, 1:59 PM
    When writing a manifest can I do an if statement with `or`and
    and
    chaining multiple conditions? Looking at https://www.puppet.com/docs/puppet/7/lang_conditional.html#lang_condition_if but couldn't see a hint towards it
    âś… 1
  • b

    bastelfreak

    05/05/2023, 2:00 PM
    yes you can.check https://www.puppet.com/docs/puppet/8/lang_expressions.html#lang_expressions-order-of-operations
  • m

    Moe

    05/05/2023, 2:00 PM
    Ah yes, I can. It says it right there
    Expressions, including arbitrarily nested
    and
    and
    or
    expressions
  • m

    Moe

    05/05/2023, 2:01 PM
    Yes, just saw it when re-reading that section. It's a theme: reading something, not getting it, asking here, re-reading while waiting and finding a solution. Meh.
  • y

    Yorokobi

    05/05/2023, 2:14 PM
    Rubber 🦆 is a valid method for answering questions.
  • y

    Yury Bushmelev

    05/05/2023, 2:43 PM
    also
    puppet apply -e
    🙂
  • y

    Yury Bushmelev

    05/05/2023, 2:44 PM
    puppet apply -e 'if true and true or false { notice(true) } else { notice(false) }'
  • j

    jidar

    05/05/2023, 5:00 PM
    Can somebody help explain to me why the following code isn't working?
    Copy code
    class profile::stupid {
      if $facts['os']['family'] == 'Debian' {
        $source = 'puppet:///modules/systems_pe/QualysCloudAgent.deb'
      } else {
        $source = 'puppet:///modules/systems_pe/QualysCloudAgent.rpm'
      }
    
      file { '/tmp/qualys.deb':
        source => $source,
      }
    
      package { 'Qualys Cloud Security Agent':
        ensure   => installed,
        source   => '/tmp/qualys.deb',
        provider => 'dpkg',
      }
    }
  • s

    Slackbot

    05/05/2023, 5:01 PM
    This message was deleted.
    v
    • 2
    • 1
  • c

    CVQuesty

    05/05/2023, 5:02 PM
    does that file live in the files directory in your module, and is its permissions ok?
  • j

    jidar

    05/05/2023, 5:02 PM
    does git store file permissions?
  • j

    jidar

    05/05/2023, 5:02 PM
    also how would I do that on windows
  • c

    CVQuesty

    05/05/2023, 5:05 PM
    I would likely make it look a little more like this just for completeness sake:L
    Copy code
    class profile::stupid {
        if $facts['os']['family'] == 'Debian' {
          $source = 'puppet:///modules/systems_pe/QualysCloudAgent.deb'
        } else {
          $source = 'puppet:///modules/systems_pe/QualysCloudAgent.rpm'
        }
    
        file { '/tmp/qualys.deb':
          ensure => 'file',
          owner  => 'whoever',
          group  => 'whoever',
          mode   => '0644',
          source => $source,
        }
    
        package { 'Qualys Cloud Security Agent':
          ensure   => installed,
          source   => '/tmp/qualys.deb',
          provider => 'dpkg',
          require  => File['/tmp/qualys.deb'],
        }
      }
  • c

    CVQuesty

    05/05/2023, 5:08 PM
    when I was talking about permissions, I was talking about where the file lives on the Puppet server. Like if the owner was root:root, and the puppet user is trying to access it. Something like that
  • c

    CVQuesty

    05/05/2023, 5:08 PM
    But both package files need to live in
    modules/systems_pe/files/
  • y

    Yorokobi

    05/05/2023, 5:09 PM
    git preserves UNIX file permissions, Windows does not. Usually, when I clone a repository that has elements composed on a Windows machine to a Linux box, those files are DOS formatted and have the execute bit set.
  • y

    Yorokobi

    05/05/2023, 5:09 PM
    Ownership is not preserved.
  • c

    CVQuesty

    05/05/2023, 5:09 PM
    I would also quietly wonder why these aren’t in a local Yum and Apt repo?
  • j

    jidar

    05/05/2023, 5:12 PM
    I get so tired of re-answering the same basic questions every time
  • j

    jidar

    05/05/2023, 5:13 PM
    customer doesn't have a nfs server or any other place to put things, happy?
  • v

    vchepkov

    05/05/2023, 5:13 PM
    attitude is not necessary
  • c

    CVQuesty

    05/05/2023, 5:13 PM
    Ok, then. Figure it out for yourself. This is free support and you’re being a jerk
    đź’Ż 2
  • j

    jidar

    05/05/2023, 5:15 PM
    like the “help” was all that useful
  • r

    runlolarun

    05/05/2023, 6:18 PM
    drama!
  • r

    Robert FD

    05/05/2023, 6:59 PM
    I now feel a palpable and awkward silence...
1...358359360...428Latest