Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate declaration: Service[undef] is already declared in file virt/manifests/init.pp. #11

Open
wica128 opened this issue Sep 28, 2012 · 2 comments

Comments

@wica128
Copy link

wica128 commented Sep 28, 2012

Hi,

puppet: 2.7.18
ubuntu: 12.04 LTS
puppet-virt: git, today

I had a issue with virt/manifests/init.pp

"err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Service[undef] is already declared in file /etc/puppet/modules/virt/manifests/init.pp at line 18; cannot redeclare at /etc/puppet/modules/virt/manifests/init.pp:23 on node example.com"

I solve this by changing "service { $servicename:" to "service { $virt::params::servicename:" in file /etc/puppet/modules/virt/manifests/init.pp.

Almost forgot, thnx for the work :)

@wica128
Copy link
Author

wica128 commented Sep 28, 2012

On ubuntu 12.04 LTS the init script is called libvirt-bin.

I do not know how the change params.pp correct. So my workaround (I have only ubuntu systems on puppet) is changing
"/^physical|^kvm/: {
$servicename = 'libvirtd'"

into

"/^physical|^kvm/: {
$servicename = 'libvirt-bin'"

@leftys
Copy link

leftys commented Dec 27, 2014

I can confirm this problem, but the workaround doesn't work for me. I use the openvz virt_type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants