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

    sameer

    09/19/2022, 10:08 AM
    as there are also some files defined in this way apache::vhost { "${fqdn}-non-ssl": in the same manifest file
  • s

    Slackbot

    09/19/2022, 11:35 AM
    This message was deleted.
    m
    n
    • 3
    • 8
  • m

    Marty Ewings

    09/19/2022, 11:44 AM
    So generally in Puppet code, you must know what needs configured in the target application documentation, and then you write puppet code to manage that state, or perform the function. you wont find docs in Puppet (outside of a personal project) on how to do this exact upgrade, but you will find lots of documentation on managing linux packages and configurations in general
  • y

    Yorokobi

    09/19/2022, 12:36 PM
    Is there a way to make
    /opt/puppetlabs/puppet/public/last_run_summary.yaml
    world readable? I see in PA-3253 that there was a similar request but the conversation looks like it turned to cache/ (and possibly the CVE related to the last_run_report.yaml file). The agent's puppet.rb sets the public directory to 0755 but there's no mention of the summary file therein.
  • y

    Yorokobi

    09/19/2022, 12:43 PM
    Ah, found what I needed from a Nagios trouble ticket.
    Copy code
    [agent]
    lastrunfile = $publicdir/last_run_summary.yaml {mode = 0644}
  • s

    sameer

    09/19/2022, 2:01 PM
    is there any software or tool to convert the apache conf file into manifest file?
  • s

    Slackbot

    09/19/2022, 2:03 PM
    This message was deleted.
    s
    j
    h
    • 4
    • 4
  • b

    bastelfreak

    09/19/2022, 3:35 PM
    for PE, there is https://github.com/puppetlabs/puppetlabs-pe_databases/blob/main/manifests/pg_repack.pp to configure pg_repack which will basically purge dead tuples like autovacuum does, but better. you can adopt it to FOSS as well
  • s

    Slackbot

    09/19/2022, 4:58 PM
    This message was deleted.
    y
    • 2
    • 1
  • n

    natemccurdy

    09/19/2022, 5:11 PM
    ah sorry, no, seconds. Everything should be in seconds.
  • n

    natemccurdy

    09/19/2022, 5:11 PM
    Yeah… here are formulas I use as a starting point, and they’ve worked for a few years now….
    Copy code
    TOTAL_JRUBIES = (total_num_of_agents * (avg_catalog_compile_time_in_seconds * 2)) / run_interval_in_seconds)
    
    TOTAL_PUPPETSERVERS = TOTAL_JRUBIES / max-active-instances
  • b

    bastelfreak

    09/19/2022, 6:52 PM
    @josh Hi o/ . Could you take a look at https://github.com/puppetlabs/puppet/pull/8919 ?
  • b

    bastelfreak

    09/19/2022, 6:52 PM
    @josh Hi o/ . Could you take a look at https://github.com/puppetlabs/puppet/pull/8919 ?
  • s

    Slackbot

    09/19/2022, 9:18 PM
    This message was deleted.
    n
    j
    • 3
    • 9
  • s

    Slackbot

    09/19/2022, 9:25 PM
    This message was deleted.
    y
    r
    • 3
    • 2
  • n

    natemccurdy

    09/19/2022, 9:32 PM
    So if you did
    notify +> Foo[something]
    in a collector, it’d add the relationship.
  • b

    bastelfreak

    09/19/2022, 9:34 PM
    I did say go would be such a different language to the current community that community contributions would go against zero, and that would be bad
  • n

    natemccurdy

    09/19/2022, 9:36 PM
    Possibly, though I haven’t tried that before. I’d try setting it to `undef`or
    []
    to clear out all relationships.
  • b

    binford2k

    09/19/2022, 10:01 PM
    we do have half of a go based compiler as a defunct experiment https://github.com/lyraproj/puppet-evaluator
  • c

    Callum McCrorie

    09/20/2022, 10:34 AM
    Hello, I am trying to get puppetdb working, I am not sure what is going wrong exactly. I am using a configuration that has worked before and I did not have any issues with, but now after putting the server back to factory settings I have deployed my scripts again and now I am running into this error:
    Copy code
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=6a4a91357c1cc0a61f1fc3e24be4de52c03dfe15&version=5&certname=<http://puppet.company.com|puppet.company.com>&command=replace_facts&producer-timestamp=2022-09-20T10:01:38.018Z' on at least 1 of the following 'server_urls': <https://puppetdb:8081>
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    The scripts for puppetdb are: puppetboard.pp
    Copy code
    class profiles::puppetboard {
      require docker
      docker::image { '<http://ghcr.io/voxpupuli/puppetboard:3.5.0|ghcr.io/voxpupuli/puppetboard:3.5.0>':
        notify => Docker::Run['puppetboard'],
      }
    
      docker::run { 'puppetboard':
        image => '<http://ghcr.io/voxpupuli/puppetboard:3.5.0|ghcr.io/voxpupuli/puppetboard:3.5.0>',
        env   => [
          'PUPPETDB_HOST=127.0.0.1',
          'PUPPETDB_PORT=8080', # I have also tried changing this to _Port=8081 and revive the same error.
          'PUPPETBOARD_PORT=9090',
        ],
        net   => 'host',
      }
    }
    and puppet.company.com.yaml
    Copy code
    ---
    classes:
      - 'puppetdb'
      - 'puppetdb::master::config'
      - 'docker'
      - 'profiles::puppetboard'
      - 'r10k'
      - 'r10k::webhook::config'
      - 'r10k::webhook'
    
    puppetdb::master::config::manage_report_processor: true
    puppetdb::master::config::enable_reports: true
    puppetdb::node_ttl: '7d'
    puppetdb::node_purge_ttl: '7d'
    puppetdb::report_ttl: '7d'
    puppetdb::manage_firewall: false
    
    r10k::remote: 'git@github.com:company/control-repo.git'
    r10k::webhook::config::use_mcollective: false
    r10k::webhook::config::enable_ssl: false
    r10k::webhook::config::protected: false
    r10k::webhook::config::user: 'puppet'
    r10k::webhook::config::pass: 'puppet'
    r10k::webhook::use_mcollective: false
    r10k::webhook::user: 'puppet'
    r10k::webhook::group: 'puppet'
    The name of the puppetserver is puppet.company for this reference. I am hoping that someone will be able to point me in the right direction with this please.
  • d

    Dr Bunsen Honeydew

    09/20/2022, 10:34 AM
    ```- lost a level. (Karma: -73)
  • s

    Slackbot

    09/20/2022, 12:50 PM
    This message was deleted.
    c
    d
    c
    • 4
    • 5
  • d

    Dr Bunsen Honeydew

    09/20/2022, 12:50 PM
    See the
    puppetlabs-puppetdb
    module at https://forge.puppet.com/puppetlabs/puppetdb?src=slack&amp;channel=puppet
  • j

    John Ratliff

    09/20/2022, 8:08 PM
    Can you create a single level in hiera that references an array of facts? i.e. let's say I had a custom fact called host_tags that might have the value ['mongo','apache']. I want to have hiera files data/host_tags/mongo.eyaml and data/host_tags/apache.eyaml. I do not want to specify a new hiera level in hiera.yaml for each specific tag.
  • n

    natemccurdy

    09/20/2022, 8:11 PM
    @John Ratliff See the
    mapped_paths
    example here: https://puppet.com/docs/puppet/7/hiera_config_yaml_5.html#specifying_file_paths
  • n

    natemccurdy

    09/20/2022, 8:12 PM
    Copy code
    - name: Example
        mapped_paths: [host_tags, tag, "host_tags/%{tag}.eyaml"]
    👍 1
  • j

    John Ratliff

    09/20/2022, 8:15 PM
    So, if the custom fact were literally named
    host_tags
    , the first param would be
    host_tags
    , and not something like
    %{facts.host_tags}
    ? Not clear on what
    scope variable
    means.
  • n

    natemccurdy

    09/20/2022, 8:18 PM
    That’s a good question, and honestly I don’t know. That part of the docs is ambiguous. I would assume that
    host_tags
    works, since all facts are also top-scope variables. But I don’t know how you could explicitly specify a fact vs. a scope variable like you can in other parts of Hiera.
  • n

    natemccurdy

    09/20/2022, 8:19 PM
    Maybe
    facts.host_tags
    , but I’m not sure.
  • j

    John Ratliff

    09/20/2022, 8:19 PM
    I wasn't aware all facts are also top-scope variables. Thanks. I'll try it out and see what happens.
1...168169170...428Latest