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

    Lumiere

    05/09/2022, 6:42 PM
    what's
    hostname -f
    say?
  • j

    JoeH

    05/09/2022, 6:43 PM
    @Lumiere only th hostname
  • l

    Lumiere

    05/09/2022, 6:43 PM
    I would do a
    puppet config set certname 'full.qualified.domain.name'
    💯 1
  • l

    Lumiere

    05/09/2022, 6:44 PM
    and use whatever mechanisms in your system to ensure the hostname matches
  • j

    JoeH

    05/09/2022, 6:49 PM
    @Lumiere That worked, thank you so much! How could that have gotten screwed up? Or at least is it in a file somewhere I'd be able to change it?
  • l

    Lumiere

    05/09/2022, 6:50 PM
    it's usually set at install, what distro / os is it?
  • j

    JoeH

    05/09/2022, 6:50 PM
    Ubuntu 20 (client)
  • j

    JoeH

    05/09/2022, 6:51 PM
    message has been deleted
  • l

    Lumiere

    05/09/2022, 6:51 PM
    hostnamectl should let you change it
  • v

    vchepkov

    05/09/2022, 6:51 PM
    bottom line is, fqdn is not configured properly
    this 1
  • l

    Lumiere

    05/09/2022, 6:51 PM
    you will likely want to reboot to ensure everything picks up the change
  • j

    JoeH

    05/09/2022, 6:52 PM
    hostname -A
    gave the fqdn and the hostname...
  • l

    Lumiere

    05/09/2022, 6:52 PM
    so, hostname -f is what gets run
  • j

    JoeH

    05/09/2022, 6:52 PM
    ah
  • l

    Lumiere

    05/09/2022, 6:53 PM
    but hostnamectl is the systemd way to manage the hostname
  • l

    Lumiere

    05/09/2022, 6:53 PM
    it should change it everywhere but /etc/hosts
  • j

    JoeH

    05/09/2022, 6:53 PM
    Well now I know what the deal is. Thank you @Lumiere @vchepkov @ragnarkon I really appreciate it!
    👍 1
  • v

    vchepkov

    05/09/2022, 6:58 PM
    I prefer to set it explicitly, as @Lumiere suggested, on AWS instances, for example, it's just some random name, so I create one more meaningful based on tags. frankly, it's just an ID, doesn't have to be DNS
  • l

    Lumiere

    05/09/2022, 6:59 PM
    and my use case is different, because all my boxes are in a DC of mine, so making their cert name match the hostname makes it easier to track them in puppet as a cmdb
  • v

    vchepkov

    05/09/2022, 7:00 PM
    one can have a
    domainname
    fact :)
  • l

    Lumiere

    05/09/2022, 7:00 PM
    ofc, I have a nice naming standard though
  • l

    Lumiere

    05/09/2022, 7:00 PM
    so I use it 😄
  • v

    vchepkov

    05/09/2022, 7:01 PM
    That works well, when VMs are 'pets', not 'cattle' 🙂
  • l

    Lumiere

    05/09/2022, 7:01 PM
    yea well, when my vms become cattle... my puppet servers are going to be cattle too 😄
  • y

    Yorokobi

    05/09/2022, 7:01 PM
    My AWS pets have A and PTR records in private R53 zones ... 😆
  • l

    Lumiere

    05/09/2022, 7:02 PM
    🐇
  • v

    vchepkov

    05/09/2022, 7:02 PM
    Also works for single account, if your org has hundreds, not so much
  • y

    Yorokobi

    05/09/2022, 7:06 PM
    Never mind. v4 throws the traceback without expressly blocking ec2_userdata
  • m

    Massimiliano (Max)

    05/09/2022, 7:58 PM
    what would be the syntax to avoid duplicated exported resources?
    Copy code
    Server Error: A duplicate resource was found while collecting exported resources, with the type and title Sensu_check[check-consul-production-prod-postgres]
    Duplicate resources come from different servers, when the name is the same. I thought the second would have overwritten the first.
  • v

    vchepkov

    05/09/2022, 8:00 PM
    you need construct your resource using unique names, certname
    ➕ 1
1...293031...428Latest