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

    Andries Malan

    09/07/2022, 7:38 PM
    PR submitted https://github.com/puppetlabs/puppetlabs-apache/pull/2307
  • s

    Slackbot

    09/07/2022, 8:03 PM
    This message was deleted.
    c
    • 2
    • 1
  • g

    glee

    09/07/2022, 10:13 PM
    Is the key you're looking up
    foo.bar.baz.quix
    ? and it is a hash with key
    keytab_base64
    ? Does the below work?
    aliased_key: "%{alias(\"foo.bar.baz.quix\".keytab_base64)}"
  • c

    Corey Hickey

    09/08/2022, 12:19 AM
    Passing the variable to the function as a parameter is indeed probably best. You can get access to puppet variables in a function, though, via: https://puppet.com/docs/puppet/7/functions_ruby_implementation.html#functions_ruby_implementation-accessing-variables I don't know if that works with the old v3 function API. In general, you may have an easier time doing the upgrade bit by bit rather than all at once. I recall that upgrading from puppet 3 to 4 was much more difficult than future upgrades. I recommend, in general, to: 1. Enable the future parser and make your codebase work with that. https://github.com/puppetlabs/docs-archive/blob/main/puppet/3.8/experiments_future.markdown 2. Upgrade to puppet 4 and make your codebase work with that. 3. Upgrade to puppet 5, etc.
  • s

    Slackbot

    09/08/2022, 7:23 AM
    This message was deleted.
    b
    p
    +2
    • 5
    • 14
  • p

    Pavlos Parissis

    09/08/2022, 7:39 AM
    Hi team, is it possible to configure
    package
    to only upgrade a package if it is already installed? I am porting code from Ansible and we set https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html#parameter-only_upgradeto to
    true
    and supply a list of packages. So the playbook upgrades packages on VMs that already exist and on others it does not do anything. Can I mimic that behavior with puppet?
  • c

    Craig Gumbley

    09/08/2022, 9:17 AM
    can we not change this
    Optional[Variant[Stdlib::Absolutepath, Boolean[False]]] $vhost_enable_dir = $apache::params::vhost_enable_dir,
    to
    Boolean
    and set the default to
    true
    then fix the code path so that it actually behaves like a toggle?
  • c

    Craig Gumbley

    09/08/2022, 9:18 AM
    can you link me the code?
  • c

    Craig Gumbley

    09/08/2022, 9:20 AM
    https://github.com/puppetlabs/puppetlabs-apache/blob/eb6115c1e8aea343a5bc560594c7b758e5a81796/manifests/init.pp#L706
  • d

    Dr Bunsen Honeydew

    09/08/2022, 11:45 AM
    goodnews 🧑‍🏫Puppet Forge is about to start up in #CFD8Z9A4T
  • f

    fe80

    09/08/2022, 2:40 PM
    Hello, It's not possible to doing something like this on my spec helper ?
    Copy code
    # 'spec_overrides' from sync.yml will appear below this line
    RSpec.configure do |c|
      c.before :each do
        Puppet::Functions.create_function(:'synapps::metadatas') do
          dispatch :metadatas do
            param 'String', :asset_id
          end
    
          def metadatas(asset_id)
            {}
          end
        end
      end
    end
    This is a custom function using an external api
  • s

    Slackbot

    09/08/2022, 3:10 PM
    This message was deleted.
    p
    h
    • 3
    • 12
  • h

    helindbe

    09/08/2022, 3:17 PM
    Even if you get to call the function agent side there isnt much you can do to modify the catalog being applied.
  • s

    Slackbot

    09/08/2022, 3:33 PM
    This message was deleted.
    s
    j
    h
    • 4
    • 12
  • s

    Slackbot

    09/08/2022, 5:25 PM
    This message was deleted.
    b
    r
    l
    • 4
    • 6
  • v

    vchepkov

    09/08/2022, 5:30 PM
    Not sure I understand the question
  • s

    Slackbot

    09/08/2022, 5:32 PM
    This message was deleted.
    💯 1
    l
    v
    +2
    • 5
    • 11
  • d

    Dr Bunsen Honeydew

    09/08/2022, 8:45 PM
    indeed 🧑‍🏫PE Console is about to start up in #CFD8Z9A4T
  • n

    Neeloj

    09/09/2022, 7:24 AM
    hi all, Puppetserver 7.9.0 Puppet-Agent 7.18.0 on Windows Server 2019 Error in Windows eventlogs:
    Failed to determine runinterval, defaulting to 1800 seconds
    In C\ProgramData\PuppetLabs\puppet\etc\puppet.conf
    runinterval=10m
    Does anyone know why ? thanks in advance
  • s

    Slackbot

    09/09/2022, 7:26 AM
    This message was deleted.
    n
    f
    • 3
    • 10
  • y

    Yury Bushmelev

    09/09/2022, 7:26 AM
    Maybe wrong puppet.conf section
  • n

    Neeloj

    09/09/2022, 7:40 AM
    thanks for your answer @fe80 I did like you said:
    Copy code
    PS C:\Users\admin> puppet config print runinterval
    600
    PS C:\Users\admin> puppet config set --section main runinterval 10m
    PS C:\Users\admin> puppet config print runinterval
    600
    ANd when I restart the service in Services I still see the error in Windows Event-logs
    Failed to determine loglevel, defaulting to notice
    Failed to determine runinterval, defaulting to 1800 seconds
  • n

    Neeloj

    09/09/2022, 8:24 AM
    @fe80 thats right i look in
    C:/ProgramData/PuppetLabs/puppet/etc/puppet.conf
    Thats what make me crazy! I dont know why!
  • n

    Neeloj

    09/09/2022, 8:26 AM
    @fe80 I try also this:
    sc stop puppet && sc start puppet --logtofile  --debug --trace
  • n

    Neeloj

    09/09/2022, 8:38 AM
    @fe80 I try also this to see more informations but nothing news:
    sc stop puppet && sc start puppet --logtofile  --debug --trace
  • n

    Neeloj

    09/09/2022, 8:38 AM
    @fe80 I try also this to see more informations but nothing new:
    sc stop puppet && sc start puppet --logtofile  --debug --trace
  • s

    Slackbot

    09/09/2022, 8:50 AM
    This message was deleted.
    p
    s
    j
    • 4
    • 9
  • p

    Pavlos Parissis

    09/09/2022, 8:50 AM
    OK it is Friday morning and I think I am blind because I fail to see why facter will not load a fact under a dir:
    Copy code
    root@puppetserver-003:~# facter --debug --verbose --trace --custom-dir=./my_facts foo_bar
    [2022-09-09 08:49:08.415095 ] INFO Facter - executed with command line: --debug --verbose --trace --custom-dir=./my_facts foo_bar
    
    root@puppetserver-003:~# ls ./my_facts
    foo_bar.rb
    root@puppetserver-003:~# cat ./my_facts/foo_bar.rb
    # foo_bar.rb
    Facter.add('foo_bar') do
      setcode do
        Facter::Core::Execution.execute('/bin/uname --hardware-platform')
      end
    end
  • p

    Pavlos Parissis

    09/09/2022, 8:53 AM
    strace confirms that
    Copy code
    strace -e trace=openat facter --debug --verbose --trace --custom-dir=./my_facts foo_bar 2>&1 |grep foo_bar
  • s

    Slackbot

    09/09/2022, 8:53 AM
    This message was deleted.
    p
    n
    • 3
    • 5
1...156157158...428Latest