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

    Lumiere

    06/16/2022, 7:11 PM
    I'd think you know all that information pre deployment
  • l

    Lumiere

    06/16/2022, 7:12 PM
    I use containers for dev and testing, but my prod envs are all vms or physical
  • k

    khudson

    06/16/2022, 7:12 PM
    IMO if you don't have huge horizontal scaling requirements a container buys you little and gets you a lot of added hassle
  • k

    khudson

    06/16/2022, 7:12 PM
    but YMMV
  • p

    Peter

    06/16/2022, 7:13 PM
    There are many benefits to containerization, but it seems I can't have the benefits of puppet and containerization at the same time.
  • l

    Lumiere

    06/16/2022, 7:16 PM
    I mean, you can have puppet as a configuration management, just not as a long-running process
  • l

    Lumiere

    06/16/2022, 7:17 PM
    seems like having puppet lay a configset that can figure out on boot its size and reconfigure nginx slightly (or read some piece of info to determine that data)
  • l

    Lumiere

    06/16/2022, 7:17 PM
    gives you what you want
  • p

    Peter

    06/16/2022, 7:22 PM
    For as much as I have tamed the greater challenges of managing conventional servers with huge special thanks to Puppet’s help, the world is moving towards containerization. And in that world, there does not appear to be a proper configuration management yet.
  • l

    Lumiere

    06/16/2022, 7:26 PM
    that's because the design goal for a container is to pass variables in via ENV variables to the container to configure it at run time
  • l

    Lumiere

    06/16/2022, 7:26 PM
    and literally never to touch it once it is running
  • l

    Lumiere

    06/16/2022, 7:26 PM
    which puppet could configure the image while it's building to be setup to do
  • l

    Les Shiner

    06/16/2022, 7:40 PM
    I'll be installing an agent on 10 machines, they all follow the naming format of Desktop-####d where #### are numbers. I know that I can set the puppet.conf locally to say which environment to use, but if I want to control that on the server i can do that through site.pp right?
  • l

    Les Shiner

    06/16/2022, 7:40 PM
    oh dang, nate's replying
  • n

    natemccurdy

    06/16/2022, 7:41 PM
    No.
    site.pp
    can not control which environment a Puppet agent runs against. The reason being that an environment is chosen before site.pp ever gets evaluated and compiled into a catalog.
  • l

    Les Shiner

    06/16/2022, 7:41 PM
    ohhhhhhhhhhhhh
  • l

    Les Shiner

    06/16/2022, 7:42 PM
    I can use ENC to control though right?
  • n

    natemccurdy

    06/16/2022, 7:42 PM
    The two ways to pick an environment are: a) Have the agent pick it via
    --environment <foo>
    when running Puppet or
    environment=foo
    in puppet.conf b) Use an External Node Classifier (ENC), which will control it on the Puppetserver side.
  • l

    Les Shiner

    06/16/2022, 7:43 PM
    ok, I just tried ENC and got an error... let me copy it here
  • l

    Les Shiner

    06/16/2022, 7:43 PM
    ENC and I are apparently not getting along
  • l

    Les Shiner

    06/16/2022, 7:49 PM
    this is my desktop i'm testing on, this is my puppet_node_classifier file in /usr/local/bin
  • l

    Les Shiner

    06/16/2022, 7:50 PM
    the settings in my puppet.conf
  • l

    Les Shiner

    06/16/2022, 7:50 PM
    and the error
  • n

    natemccurdy

    06/16/2022, 7:50 PM
    Your ENC should output a YAML document that looks like this, and includes an
    environment
    top-level key if you want the ENC to set an environment: https://puppet.com/docs/puppet/7/nodes_external.html#enc_output_format-section_oxs_qvm_thb
  • n

    natemccurdy

    06/16/2022, 7:51 PM
    Oh, make sure that
    /usr/local/bin/puppet_node_classifier
    is executable.
    Copy code
    sudo chmod +x /usr/local/bin/puppet_node_classifier
  • n

    natemccurdy

    06/16/2022, 7:51 PM
    Oh, make sure that
    /usr/local/bin/puppet_node_classifier
    is executable.
    Copy code
    sudo chmod +x /usr/local/bin/puppet_node_classifier
  • l

    Les Shiner

    06/16/2022, 7:51 PM
    oh shoot, i completely forgot about that
1...666768...428Latest