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

    CVQuesty

    01/13/2023, 6:41 PM
    puppet ca
  • c

    CVQuesty

    01/13/2023, 6:41 PM
    puppetserver ca was later I believe
  • c

    CVQuesty

    01/13/2023, 7:13 PM
    I just spun up a puppet5, and boy… it already had the deprecation warnings for
    puppet ca
    , but it definitely works
  • c

    CVQuesty

    01/13/2023, 7:14 PM
    Copy code
    USAGE: puppet ca <action>
    This provides local management of the Puppet Certificate Authority.
  • c

    CVQuesty

    01/13/2023, 7:15 PM
    Copy code
    [vagrant@master ~]$ puppetserver ca help
    Unknown action: help
    Usage: puppetserver ca <action> [options]
    
    Manage the Private Key Infrastructure for
    Puppet Server's built-in Certificate Authority
  • c

    CVQuesty

    01/13/2023, 7:15 PM
    so… “yes”
    puppet ca
    works there but is already marked as deprecated, and the
    puppetserver ca
    command should be working @Alonso Muñoz
  • a

    Alonso Muñoz

    01/13/2023, 7:17 PM
    I understand, thank you very much @CVQuesty
  • v

    vchepkov

    01/13/2023, 7:35 PM
    but FYI, puppet6 is EOL next month, I think
    👍 1
  • j

    Joel Wilson

    01/13/2023, 8:04 PM
    Is there a way to set
    $servername
    for
    puppet apply
    ?
  • v

    vchepkov

    01/13/2023, 8:05 PM
    what would it be set to ? 🙂
  • n

    natemccurdy

    01/13/2023, 8:07 PM
    By definition, `puppet apply`'s server would be the same as
    $facts['networking']['fqdn']
    .
  • v

    vchepkov

    01/13/2023, 8:08 PM
    Copy code
    $ puppet apply -e 'notice($servername)'
    Warning: Unknown variable: 'servername'. (line: 1, column: 8)
    Notice: Scope(Class[main]):
  • n

    natemccurdy

    01/13/2023, 8:08 PM
    To be honest, I'm a little surprised
    $servername
    isn't set when doing puppet apply.
  • n

    natemccurdy

    01/13/2023, 8:08 PM
    But I guess where ever you're using
    $servername
    , you would need to check to see if it's defined first, and fall back to the fqdn fact if it's not.
    💯 1
  • n

    natemccurdy

    01/13/2023, 8:08 PM
    But I guess where ever you're using
    $servername
    , you would need to check to see if it's defined first, and fall back to the fqdn fact if it's not.
  • v

    vchepkov

    01/13/2023, 8:10 PM
    I was doing something like this in the past
  • v

    vchepkov

    01/13/2023, 8:10 PM
    Copy code
    if 'servername' in $server_facts {
  • v

    vchepkov

    01/13/2023, 8:11 PM
    Copy code
    if 'servername' in $server_facts {
  • j

    Joel Wilson

    01/13/2023, 8:14 PM
    Yeah. I'm trying to use a class that is depending on it in a bootstrapping situation. I guess servername is the the server providing the catalog, though.
    💯 1
  • n

    natemccurdy

    01/13/2023, 8:16 PM
    Copy code
    $ puppet apply -e 'notice($server_facts)'
    Notice: Scope(Class[main]): {environment => production}
    
    $ puppet apply -e 'notice($servername)'
    Warning: Unknown variable: 'servername'. (line: 1, column: 8)
    TIL... I definitely would have assumed server-supplied variables get injected by puppet apply.
  • j

    Joel Wilson

    01/13/2023, 8:16 PM
    I wonder if I can copy the module from
    code/environments/production/modules
    into
    code/modules
    and override it there.
  • n

    natemccurdy

    01/13/2023, 8:20 PM
    Depends on your `modulepath`: https://www.puppet.com/docs/puppet/7/dirs_modulepath.html#dirs_modulepath-absent-duplicate-conflicting-modules
  • v

    vchepkov

    01/13/2023, 8:20 PM
    yep
  • v

    vchepkov

    01/13/2023, 8:20 PM
    environment.conf
  • n

    natemccurdy

    01/13/2023, 8:20 PM
    message has been deleted
  • n

    natemccurdy

    01/13/2023, 8:20 PM
    message has been deleted
  • n

    natemccurdy

    01/13/2023, 8:20 PM
    message has been deleted
  • j

    Joel Wilson

    01/13/2023, 9:29 PM
    Heh. If you do
    puppet config set modulepath <new path>
    , it puts it into the
    [main]
    section of
    puppet.conf
    , and then when you run puppet, it complains that you aren't supposed to set it in
    puppet.conf
  • n

    natemccurdy

    01/13/2023, 9:30 PM
    When setting modulepath, either do it permanently via
    environment.conf
    , or one-off via the
    --modulepath
    CLI option
  • j

    Joel Wilson

    01/13/2023, 9:31 PM
    I guess the basemodulepath probably will achieve what I want, though.
1...273274275...428Latest