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

    jhoblitt

    10/13/2022, 4:43 PM
    fair point but I know it won't change the result:
    Copy code
    [root@foreman ~]# puppet lookup --node <foo>  --facts facts.yaml --merge deep files | grep "home/rke"
    Warning: Undefined variable 'cluster'; 
       (file & line not available)
    Warning: Undefined variable '::cluster'; 
       (file & line not available)
    "/home/rke/.bash_profile":
    "/home/rke/.bashrc":
    "/home/rke/.bashrc.d":
    "/home/rke/.bashrc.d/vimode.sh":
    "/home/rke/.bashrc.d/10_k8s-cookbook-path.sh":
    "/home/rke/.bashrc.d/kubeconfig.sh":
    "/home/rke/.bashrc.d/etc_bashrc.sh":
    "/home/rke/.bashrc.d/kubectl.sh":
    "/home/rke/.bashrc.d/git-prompt.sh":
  • j

    jhoblitt

    10/13/2022, 4:43 PM
    fair point but I know it won't change the result:
    Copy code
    [root@foreman ~]# puppet lookup --node <foo>  --facts facts.yaml --merge deep files | grep "home/rke"
    Warning: Undefined variable 'cluster'; 
       (file & line not available)
    Warning: Undefined variable '::cluster'; 
       (file & line not available)
    "/home/rke/.bash_profile":
    "/home/rke/.bashrc":
    "/home/rke/.bashrc.d":
    "/home/rke/.bashrc.d/vimode.sh":
    "/home/rke/.bashrc.d/10_k8s-cookbook-path.sh":
    "/home/rke/.bashrc.d/kubeconfig.sh":
    "/home/rke/.bashrc.d/etc_bashrc.sh":
    "/home/rke/.bashrc.d/kubectl.sh":
    "/home/rke/.bashrc.d/git-prompt.sh":
  • n

    natemccurdy

    10/13/2022, 4:44 PM
    Does the
    cluster
    come into play at all? Is that not a fact…. maybe it’s an ENC-provided top-scope variable?
  • j

    jhoblitt

    10/13/2022, 4:44 PM
    is in an enc var and it isn't used at all for this test node
  • j

    jhoblitt

    10/13/2022, 4:45 PM
    there are 2 other env params which are relevant and I've trippled checked my facts.yaml vs the enc output
  • j

    jhoblitt

    10/13/2022, 4:45 PM
    there are 2 other env params which are relevant and I've trippled checked my facts.yaml vs the enc output
  • j

    jhoblitt

    10/13/2022, 4:46 PM
    I have also, obviously, grepped the hiera data directly and there is no
    /home/rke
  • j

    jhoblitt

    10/13/2022, 4:46 PM
    just the nested files
  • j

    jhoblitt

    10/13/2022, 4:46 PM
    I have also, obviously, grepped the hiera data directly and there is no
    /home/rke
  • j

    jhoblitt

    10/13/2022, 4:47 PM
    what I haven't tried is removing the files in hiera I know about and seeing if that resolves the error
  • j

    jhoblitt

    10/13/2022, 4:47 PM
    let me try that...
  • j

    jhoblitt

    10/13/2022, 4:51 PM
    err, well first problem is that I wasn't setting --environment
  • j

    jhoblitt

    10/13/2022, 4:52 PM
    now this is interesting
  • j

    jhoblitt

    10/13/2022, 4:52 PM
    Copy code
    [root@foreman ~]# puppet lookup --node <foo>< --environment IT_3057_el8 --facts facts.yaml --merge deep files | grep "home/rke"
    Warning: Undefined variable 'cluster'; 
       (file & line not available)
    "/home/rke":
    "/home/rke/.ssh":
    "/home/rke/.ssh/id_rsa":
  • j

    jhoblitt

    10/13/2022, 4:53 PM
    ack -Q .ssh/id_rsa
    in the hiera yaml turns up nothing
  • j

    jhoblitt

    10/13/2022, 4:53 PM
    OMG
  • j

    jhoblitt

    10/13/2022, 4:53 PM
    I figured it out
  • j

    jhoblitt

    10/13/2022, 4:53 PM
    it is in the secrets hierarchy
  • j

    jhoblitt

    10/13/2022, 4:53 PM
    I feel dumb now
  • j

    jhoblitt

    10/13/2022, 4:55 PM
    (this should have been obvious, the main reason we allow
    files
    in hiera is for secrets)
  • j

    jhoblitt

    10/13/2022, 4:55 PM
    (this should have been obvious, the name reason we allow
    files
    in hiera is for secrets)
  • j

    jhoblitt

    10/13/2022, 4:55 PM
    @natemccurdy thank you for rubber-ducking with me
  • j

    jhoblitt

    10/13/2022, 4:55 PM
    (this should have been obvious, the main reason we allow
    files
    in hiera is for secrets)
  • s

    Slackbot

    10/13/2022, 4:55 PM
    This message was deleted.
    v
    j
    n
    • 4
    • 11
  • j

    jhoblitt

    10/13/2022, 4:56 PM
    git blame says I did that in 2020 😉
  • v

    vchepkov

    10/13/2022, 5:00 PM
    I thought --compile does that
  • j

    jhoblitt

    10/13/2022, 5:03 PM
    but it does look like it is picking up enc parameters based on the warnings about conflicting with --facts
  • r

    ramnad

    10/13/2022, 5:59 PM
    Hello All - I have got an older version of puppetserver (4), our ca master cert got expired. Can someone share the command to renew the certs
  • r

    ramnad

    10/13/2022, 6:00 PM
    Hello All - I have got an older version of puppetserver (4), our ca master cert got expired. Can someone share the command to renew the certs
  • s

    Slackbot

    10/13/2022, 6:21 PM
    This message was deleted.
    r
    • 2
    • 1
1...197198199...428Latest