Reason:
This is because internally puppet scripts use "cobbler-ubuntu-import" command.
Issue:
If we re-run puppet apply without deleting the distro, "cobbler-ubuntu-import" command throws the below error:
$cobbler-ubuntu-import precise-x86_64
skipping import, as distro name already exists: precise-x86_64
$ puppet apply -v /etc/puppet/manifests/site.pp
<Execute successfully without errors>
Solution:
By adding a "exec" resource,we can check if "*-auto" profile exists else re-create. But the default profile should exists for creating the "*-auto" profile.
I am able to reproduce this issue with the above given steps.
But when I delete the distro and re-run puppet, both the profiles and distro are getting automatically created.
$cobbler list
distros:
precise-x86_64
profiles: x86_64- auto
precise-x86_64
precise-
------
Reason: ubuntu- import" command.
This is because internally puppet scripts use "cobbler-
Issue: ubuntu- import" command throws the below error: ubuntu- import precise-x86_64
If we re-run puppet apply without deleting the distro, "cobbler-
$cobbler-
skipping import, as distro name already exists: precise-x86_64
$ puppet apply -v /etc/puppet/ manifests/ site.pp
<Execute successfully without errors>
Solution:
By adding a "exec" resource,we can check if "*-auto" profile exists else re-create. But the default profile should exists for creating the "*-auto" profile.
Checking the puppet scripts.