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

    Slackbot

    11/15/2022, 3:51 AM
    This message was deleted.
    t
    y
    • 3
    • 3
  • t

    Travis Sadler

    11/15/2022, 3:51 AM
    We hope to have completed progress before midnight PDT
  • a

    Anthony Chapman

    11/15/2022, 4:20 AM
    thanks for the info @Travis Sadler and good luck with the cutover
  • s

    Slackbot

    11/15/2022, 6:12 AM
    This message was deleted.
    e
    c
    +3
    • 6
    • 5
  • g

    gary

    11/15/2022, 6:15 AM
    Is that why the forge was 502'ing a little while ago?
  • c

    clinton.webb

    11/15/2022, 7:18 AM
    Seems to be up now
    👍 3
  • g

    gary

    11/15/2022, 9:39 AM
    Trying to use the puppet/puppetserver docker image and use its built-in CA. I am following the directions and adding
    -v ./ca/:/etc/puppetlabs/puppetserver/ca/
    as part of the args to
    docker run
    command to start it up. But should
    -v ./ssl:/etc/puppetlabs/puppet/ssl/
    also be specified? That seems like the only way to destroy and restart the docker container without losing client and server certs that been generated/signed.
  • d

    Dr Bunsen Honeydew

    11/15/2022, 9:39 AM
    See the
    puppet-puppetserver
    module at https://forge.puppet.com/puppet/puppetserver?src=slack&channel=puppet
  • s

    Slackbot

    11/15/2022, 12:19 PM
    This message was deleted.
    y
    s
    l
    • 4
    • 19
  • l

    Lumiere

    11/15/2022, 2:51 PM
    then instead of os.distro.codename do
    deb${facts['os']['distro']['release']['major']}
  • n

    nandha kumar

    11/15/2022, 3:41 PM
    Hello all , First note to let you know that we manage multiple repo through code manager. /opt/puppetlabs/server/data/code-manager/r10k.yaml sources: repo2: {prefix: false, remote: 'git@gitlab.cag.dyn.nsroot.net:puppet/environments.git', basedir: /etc/puppetlabs/code-staging/environments, invalid_branches: error} repo1: {prefix: false, remote: 'git@gitlab.cag.dyn.nsroot.net:puppet/puppet.git', basedir: /etc/puppetlabs/code-staging/environments, invalid_branches: error} cachedir: /opt/puppetlabs/server/data/code-manager/git forge: {baseurl: 'https://forgeapi.puppetlabs.com'} git: repositories: - {remote: 'git@gitlab.cag.dyn.nsroot.net:puppet/puppet.git'} - {remote: 'git@gitlab.cag.dyn.nsroot.net:puppet/environments.git'} private_key: /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa provider: rugged deploy: purge_levels: [deployment, environment, puppetfile] purge_whitelist: [.resource_types] pool_size: 4 -------------------------------------------------- we recently upgraded puppetserver to latest 2021.7.1 and after code deploy not working and throwing below error as 404 Not found. code deploy error: ------------------------------- 2022/11/15 093332 DEBUG - Log level changed to: debug 2022/11/15 093332 DEBUG - Token format is valid --dry-run implies --all. --dry-run implies --wait. Dry-run deploying all environments. POST /code-manager/v1/deploys HTTP/1.1 Host: <puppetserver>:8170 User-Agent: Go-http-client/1.1 Content-Length: 47 Accept: application/json Content-Type: application/json X-Authentication: ANmKypqCX7yA4zGfQCfTrc4B8M4rd6jxmfjxQF_MF_W8 Accept-Encoding: gzip {"deploy-all":true,"dry_run":true,"wait":true} HTTP/1.1 404 Not Found Content-Length: 75 Cache-Control: must-revalidate,no-cache,no-store Content-Type: application/json { "message":"Not Found", "url":"/code-manager/v1/deploys", "status":"404" } 2022/11/15 093332 DEBUG - [POST /deploys][404] Deploy default &{Details:<nil> Kind: Msg:} 2022/11/15 093332 ERROR - [POST /deploys][404] r10k config managing Does anyone face similar issue with code manager deployment ? Regards, Nandha
  • s

    Slackbot

    11/15/2022, 7:04 PM
    This message was deleted.
    n
    r
    c
    • 4
    • 5
  • w

    William Myers

    11/15/2022, 10:29 PM
    I would like to pull down a copy of my control repo to a dev vm for local testing against that VM, would vagrant usually be part of that workflow?
  • w

    William Myers

    11/15/2022, 10:30 PM
    E.G. use R10K to pull down the environment and then vagrant to execute locally against localhost?
  • w

    William Myers

    11/15/2022, 10:33 PM
    Pull controlrepo down to dev box >> do module dev and testing locally >> push to test branch after initial validation >> r10k on the test branch of the puppetmaster >> test against test environment >> promote to production
  • l

    Lumiere

    11/15/2022, 10:57 PM
    it can be, I use vagrant to generate a puppet server stack and then run r10k on it
  • l

    Lumiere

    11/15/2022, 10:57 PM
    (I have a ca/compile/puppetdb vm and the ability to build additional nodes as needed)
  • l

    Lumiere

    11/15/2022, 10:58 PM
    but for most things a pair of vms (one running ca/compile/puppetdb/postgres and one to apply code to
  • s

    Slackbot

    11/15/2022, 11:16 PM
    This message was deleted.
    l
    • 2
    • 1
  • s

    Slackbot

    11/16/2022, 12:01 AM
    This message was deleted.
    w
    n
    • 3
    • 26
  • n

    natemccurdy

    11/16/2022, 12:01 AM
    I use this for a simple Vagrant Puppetserver/agent stack: https://github.com/natemccurdy/vagrant-puppetserver
  • t

    Travis Sadler

    11/16/2022, 12:27 AM
    this was unsuccessful however we returned the network to its previous state; i will let y’all know next time network maintenance is expected, though most of it should not affect you. we typically plan our maintenance windows nighttime Pacific, so apologies if you’re in the worse time zones!!
  • s

    Slackbot

    11/16/2022, 12:31 AM
    This message was deleted.
    t
    y
    • 3
    • 4
  • s

    Slackbot

    11/16/2022, 12:35 AM
    This message was deleted.
    t
    • 2
    • 2
  • t

    thedonkdonk

    11/16/2022, 12:35 AM
    A bit later, I get
    Copy code
    Error: Puppet::Util::FileType::FileTypeFlat could not write /localhome/local-admin/.ssh/authorized_keys: Permission denied @ rb_sysopen - /localhome/local-admin/.ssh/authorized_keys
  • j

    Justin Riedyk

    11/16/2022, 1:11 AM
    message has been deleted
  • w

    William Myers

    11/16/2022, 6:40 AM
    message has been deleted
  • s

    Slackbot

    11/16/2022, 8:12 AM
    This message was deleted.
    d
    s
    • 3
    • 6
  • s

    sh6624gsj8

    11/16/2022, 8:17 AM
    Hello , Is there a way we can remove lines from a file in puppet ? I know
    file_line
    - is a way of adding a line to the file , however is there a way to remove the same line when a given condition doesn't satisfy ?
  • d

    David Sandilands

    11/16/2022, 9:06 AM
    If you set enusre to absent it will remove the line you can see examples on stlib rerence documentation https://forge.puppet.com/modules/puppetlabs/stdlib/reference#file_line
1...235236237...428Latest