dgolja / golja-gnupg

Puppet module for managing GnuPG package and public keys
Apache License 2.0
13 stars 46 forks source link

Key is recreated with every puppet run #27

Open gdubicki opened 7 years ago

gdubicki commented 7 years ago

I am using v. 1.2.3.

I use this code in manifest:

create_resources('gnupg_key', $::profiles::common::gpg_keys::user_keys,
      {'ensure' => 'present'})

and this in hiera:

profiles::common::gpg_keys::user_keys:
  'All something something something <ops@somecompany.com>':
    key_id: 'someid'
    user: root
    key_content: 'somecontent'
    key_type: public

..and with each puppet run I get:

Notice: /Stage[main]/Profiles::Common::Gpg_user_keys/Gnupg_key[All something something something <ops@somecompany.com>]/ensure: created

I think that this started happening when I started to use key name with a space in it...