Revision 663161613763 () - Diff

Link to this snippet: https://friendpaste.com/46T3JDm50YDBeci9w7UIj3
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# xen/manifests/init.pp

[...]

class xen::boot {
include grub
exec { "mv /etc/grub.d/10_linux /etc/grub.d/20_linux":
unless => "find /etc/grub.d -name 20_linux",
notify => Class["grub::update"]
}
exec { "mv /etc/grub.d/20_linux_xen /etc/grub.d/10_linux_xen":
unless => "find /etc/grub.d -name 10_linux_xen",
notify => Class["grub::update"]
}
}


# grub/manifests/init.pp

[...]
class grub::update {
exec { "/usr/sbin/update-grub":
}
}

# error

Could not run Puppet configuration client: Could not find dependent Class[Grub::Update] for Exec[mv /etc/grub.d/10_linux /etc/grub.d/20_linux] at /etc/puppet/modules/xen/manifests/init.pp:27