46T3JDm50YDBeci9w7UIj3 changeset

Changeset663161613763 (b)
ParentNone (a)
ab
0+# xen/manifests/init.pp
0+
0+[...]
0+
0+class xen::boot {
0+    include grub
0+    exec { "mv /etc/grub.d/10_linux /etc/grub.d/20_linux":
0+        unless => "find /etc/grub.d -name 20_linux",
0+        notify => Class["grub::update"]
0+    }
0+    exec { "mv /etc/grub.d/20_linux_xen /etc/grub.d/10_linux_xen":
0+        unless => "find /etc/grub.d -name 10_linux_xen",
0+        notify => Class["grub::update"]
0+    }
0+}
0+
0+
0+# grub/manifests/init.pp
0+
0+[...]
0+ 
0+class grub::update {
0+    exec { "/usr/sbin/update-grub":
0+   }
0+}
0+
0+# error
0+
0+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
...
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
30
31
32
--- Revision None
+++ Revision 663161613763
@@ -0,0 +1,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