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

    bastelfreak

    10/06/2022, 7:19 PM
    an empty basedir?
  • m

    Martin Merfort

    10/06/2022, 7:19 PM
    What's the basedir again?
  • b

    bastelfreak

    10/06/2022, 7:19 PM
    Copy code
    ---
    :cachedir: /opt/puppetlabs/puppet/cache/r10k
    :sources:
      puppet:
        basedir: /etc/puppetlabs/code/environments
        remote: git@github.com:bastelfreak/controlrepo.git
    
    :deploy:
      generate_types: true
      puppet_path: "/usr/bin/puppet"
    
    :pool_size: 4
  • d

    Dr Bunsen Honeydew

    10/06/2022, 7:19 PM
    ```- lost a level. (Karma: -77)
  • b

    bastelfreak

    10/06/2022, 7:20 PM
    something like that in
    /etc/puppetlabs/r10k/r10k.yaml
  • m

    Martin Merfort

    10/06/2022, 7:21 PM
    I don't have that set but I'll try to do that
  • m

    Martin Merfort

    10/06/2022, 7:23 PM
    Now it fails differently, so that's good
  • b

    bastelfreak

    10/06/2022, 7:23 PM
    nice, progress!
  • m

    Martin Merfort

    10/06/2022, 7:23 PM
    Yeah, just some cloning issues
  • m

    Martin Merfort

    10/06/2022, 7:24 PM
    I think I'll take care of those tommorrow
  • m

    Martin Merfort

    10/06/2022, 7:24 PM
    Thanks for the help!
  • b

    bastelfreak

    10/06/2022, 7:24 PM
    sure o/
  • l

    Lumiere

    10/06/2022, 8:36 PM
    Is it possible to use epp from another module? (I want to access an epp for vox's systemd module from a profile)
  • n

    natemccurdy

    10/06/2022, 8:37 PM
    Yup. You can reference an EPP template from anywhere, including other modules.
  • d

    Dr Bunsen Honeydew

    10/06/2022, 8:45 PM
    allthethings šŸ§‘ā€šŸ«PE Console is about to start up in #CFD8Z9A4T
  • w

    William Myers

    10/06/2022, 11:28 PM
    I may be doing something wrong here, but this module is failing with an error. I have the apache module installed on the master.
  • w

    William Myers

    10/06/2022, 11:28 PM
    Copy code
    # @summary A short summary of the purpose of this class
    #
    # A description of what this class does
    #
    # @example
    #   include phpipam_config::harden_apache
    class phpipam_config::harden_apache {
      include 'apache'
    
      apache { 'harden':
        trace_enable  => off,
      }
    }
  • w

    William Myers

    10/06/2022, 11:28 PM
    Copy code
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'apache' (file: /etc/puppetlabs/code/environments/production/modules/phpipam_config/manifests/harden_apache.pp, line: 10, column: 3) on node vmipam01.britanniahome.local
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
  • w

    William Myers

    10/06/2022, 11:30 PM
    should I not be trying to draw in the apache module externally?
  • n

    natemccurdy

    10/06/2022, 11:34 PM
    What do you intend this to do? It’s not right… but I also don’t know what you meant to do:
    Copy code
    apache { 'harden':
        trace_enable  => off,
      }
    There’s no resource called
    apache
    , not even in the Apache module.
  • w

    William Myers

    10/06/2022, 11:35 PM
    I'm starting small for now but my goal is to turn trace_enable off via puppet. Once I've done that there are a few other values I intend to adjust
  • w

    William Myers

    10/06/2022, 11:35 PM
    Eventually deploy phpipam via puppet
  • w

    William Myers

    10/06/2022, 11:36 PM
    on a couple of servers I had adjusted the parameters directly in /etc/apache2/apache2.conf , which I'm now learning is a bad practice.
  • n

    natemccurdy

    10/06/2022, 11:36 PM
    trace_enable
    is a parameter of the
    apache
    class: https://forge.puppet.com/modules/puppetlabs/apache/reference#trace_enable To specify a parameter when declaring a class, you can’t use the
    include
    function. You need to declare the class using the ā€œresource-likeā€ syntax. For example:
    Copy code
    class { 'apache':
      trace_enable => "off",
    }
  • w

    William Myers

    10/06/2022, 11:37 PM
    ah, can that be nested within another class?
  • n

    natemccurdy

    10/06/2022, 11:37 PM
    Yes. For reference, refer to these docs: https://puppet.com/docs/puppet/7/lang_classes.html#lang_class_declare
  • w

    William Myers

    10/06/2022, 11:37 PM
    Copy code
    # @summary A short summary of the purpose of this class
    #
    # A description of what this class does
    #
    # @example
    #   include phpipam_config::harden_apache
    class phpipam_config::harden_apache {
      class { 'apache':
        trace_enable => "off",
      }
    }
  • w

    William Myers

    10/06/2022, 11:37 PM
    is valid then?
  • n

    natemccurdy

    10/06/2022, 11:38 PM
    Yes, that’s syntactically correct.
  • w

    William Myers

    10/06/2022, 11:38 PM
    thanks! reading through the document you linked. You've been giving me a lot of great articles the past couple days 😃
    šŸ» 1
1...187188189...428Latest