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

    Slackbot

    07/31/2023, 9:02 PM
    This message was deleted.
    v
    s
    d
    • 4
    • 4
  • s

    Slackbot

    07/31/2023, 10:32 PM
    This message was deleted.
    j
    b
    • 3
    • 34
  • d

    Dr Bunsen Honeydew

    08/01/2023, 10:45 AM
    kermit typing CAT team -- modules is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    08/01/2023, 2:38 PM
    This message was deleted.
    b
    y
    +2
    • 5
    • 8
  • s

    Slackbot

    08/01/2023, 3:08 PM
    This message was deleted.
    b
    r
    c
    • 4
    • 17
  • d

    Dr Bunsen Honeydew

    08/01/2023, 4:45 PM
    fry dancing 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    08/01/2023, 9:26 PM
    This message was deleted.
    b
    j
    +2
    • 5
    • 19
  • s

    Slackbot

    08/02/2023, 5:34 AM
    This message was deleted.
    n
    c
    • 3
    • 5
  • s

    Slackbot

    08/02/2023, 5:39 AM
    This message was deleted.
    y
    e
    +2
    • 5
    • 8
  • d

    Dunatotatos

    08/02/2023, 7:33 AM
    Hi, I'm trying to write a provider to manage open and closed ports with firewalld. I know that a module already exists for that, but it is mostly for learning purpose. However, I encounter 2 issues.
    pdk
    creates the type and provider with
    SimpleProvider
    , which is fine. The
    delete
    method gets a context and a name as parameters, but no
    should
    , and there is no way to find which port and protocol should be removed. Is there another solution than forcing this information to be stored in the name of the resource? Second issue I have with SimpleProvider is the syntax to use to confine the provider. How to use the equivalent of
    :command
    and
    :confine
    that we have in a low-level implementation?
  • s

    Slackbot

    08/02/2023, 2:31 PM
    This message was deleted.
    chocolatey 2
    r
    r
    • 3
    • 2
  • b

    Brian Schonecker

    08/02/2023, 8:00 PM
    Hello again! I'm using puppet-mysql module to manage an enterprise version of MariaDB. I need to modify the systemd unit file for the service (/usr/lib/systemd/system/mysqld.service) I don't see anything in the mysql module that leads me to believe that the module can manage the unit file. Would a systemd module be appropriate or should I just make a one-off template for the unit file?
  • v

    vchepkov

    08/02/2023, 8:16 PM
    in the profile class, where you call mysql::server you can add
    systemd::unit_file
    or, maybe just
    systemd::dropin_file
    just need to insert it between classes of mysql
  • v

    vchepkov

    08/02/2023, 8:18 PM
    Copy code
    Class['mysql::server::install'] -> Systemd::Dropin_file['custom'] ~> Class['mysql::server::service']
  • b

    bastelfreak

    08/02/2023, 8:22 PM
    use
    systemd::dropin_file
    🙂
  • b

    Brian Schonecker

    08/02/2023, 8:48 PM
    Thanks, guys. That seems like something that would be useful in the mysql/mariadb module.
  • s

    spp

    08/02/2023, 9:06 PM
    There's a big philosophy of where to draw the line between what one module does and what another does. I could see the argument either way as to whether a module like mysql should be able to manage its own unit file versus leveraging the systemd module. It's certainly worth opening a Git Issue to see if thoughts had changed over time.
  • s

    Slackbot

    08/02/2023, 9:43 PM
    This message was deleted.
    m
    y
    • 3
    • 11
  • s

    simonhoenscheid

    08/03/2023, 12:22 PM
    Hello, as diskussed in this thread https://puppetcommunity.slack.com/archives/C0W298S9G/p1688997966881979 I went with the option to create a new provider for postgresql_conf. The current code is on Github: https://github.com/puppetlabs/puppetlabs-postgresql/blob/8205c5f67e8ae5a6c62b8f355ff8eabf85d01191/lib/puppet/provider/postgresql_conf/ruby.rb Using the provider shows the following error:
    Copy code
    Error: Could not autoload puppet/provider/postgresql_conf/ruby: undefined local variable or method `resource' for Puppet::Type::Postgresql_conf::ProviderRuby:Class
    Did you mean?  resource_type
    Error: Could not autoload puppet/type/postgresql_conf: Could not autoload puppet/provider/postgresql_conf/ruby: undefined local variable or method `resource' for Puppet::Type::Postgresql_conf::ProviderRuby:Class
    Did you mean?  resource_type
    Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Type-Name, Could not autoload puppet/type/postgresql_conf: Could not autoload puppet/provider/postgresql_conf/ruby: undefined local variable or method `resource' for Puppet::Type::Postgresql_conf::ProviderRuby:Class
    Did you mean?  resource_type (file: /vagrant/puppet/modules/postgresql/manifests/server/config_entry.pp, line: 76, column: 5) (file: /vagrant/puppet/modules/postgresql/manifests/server/instance/config.pp, line: 206)
    As far as I understand and saw in other providers, the
    resource
    hash should be available. Are there any conditions? I know e.g.
    @property_hash
    is dependent on prefetching.
  • s

    Slackbot

    08/03/2023, 5:27 PM
    This message was deleted.
    n
    c
    e
    • 4
    • 8
  • s

    Slackbot

    08/03/2023, 5:30 PM
    This message was deleted.
    c
    • 2
    • 1
  • v

    vchepkov

    08/03/2023, 5:31 PM
    safer bet would be to define a stage with just that exec that runs at the end
  • c

    cameron

    08/03/2023, 5:31 PM
    Greetings puppetteers! I have a basic question that I can't seem to successfully find the answer for: When I'm removing a user, I get a failure from the group resource - cannot remove the user's primary group before the user is removed. However, puppet autorequires the user's primary group if present managed (as it is in my case). Is there a built-in way to handle this case of removing a user, or do I need to add a resource ordering directive for the cases of removing instead of adding users? The order when adding a user is User['foo'] requires Group['foo'], but when removing a user it becomes User['foo'] before Group['foo']. My google-fu is failing me terribly this morning. This is obviously a thoroughly solved problem.
  • s

    Slackbot

    08/03/2023, 5:34 PM
    This message was deleted.
    💯 1
    c
    v
    +5
    • 8
    • 33
  • s

    Slackbot

    08/03/2023, 9:07 PM
    This message was deleted.
    n
    m
    c
    • 4
    • 13
  • s

    Slackbot

    08/03/2023, 9:48 PM
    This message was deleted.
    n
    m
    • 3
    • 4
  • s

    Slackbot

    08/03/2023, 9:49 PM
    This message was deleted.
    s
    • 2
    • 1
  • s

    Slackbot

    08/04/2023, 9:07 AM
    This message was deleted.
    👍🏻 1
    surprised 1
    y
    b
    d
    • 4
    • 8
  • s

    Slackbot

    08/04/2023, 9:29 AM
    This message was deleted.
    y
    r
    +5
    • 8
    • 15
  • s

    Slackbot

    08/04/2023, 12:09 PM
    This message was deleted.
    b
    b
    • 3
    • 3
1...400401402...428Latest