summaryrefslogtreecommitdiff
path: root/sysvinit
diff options
context:
space:
mode:
authorNate House nathan.house@rackspace.com <>2014-01-23 16:51:49 -0600
committerNate House nathan.house@rackspace.com <>2014-01-23 16:51:49 -0600
commit7e2d084eabbabd035e56a65c52b277a0732b09d5 (patch)
tree49b4059f13c3bdbc4f48a7648858908909ee1a51 /sysvinit
parent50076145457e5857896493cb5c063944da03772c (diff)
downloadvyos-cloud-init-7e2d084eabbabd035e56a65c52b277a0732b09d5.tar.gz
vyos-cloud-init-7e2d084eabbabd035e56a65c52b277a0732b09d5.zip
Initial add Gentoo distro
Diffstat (limited to 'sysvinit')
-rw-r--r--sysvinit/gentoo/cloud-config14
-rw-r--r--sysvinit/gentoo/cloud-final11
-rw-r--r--sysvinit/gentoo/cloud-init12
-rw-r--r--sysvinit/gentoo/cloud-init-local13
4 files changed, 50 insertions, 0 deletions
diff --git a/sysvinit/gentoo/cloud-config b/sysvinit/gentoo/cloud-config
new file mode 100644
index 00000000..affd0cb3
--- /dev/null
+++ b/sysvinit/gentoo/cloud-config
@@ -0,0 +1,14 @@
+#!/sbin/runscript
+
+depend() {
+ after net # remove after nova-agent fix
+ before cloud-init-local
+ before cloud-init
+ before cloud-final
+ provide cloud-config
+}
+
+start() {
+ cloud-init modules --mode config
+ eend 0
+}
diff --git a/sysvinit/gentoo/cloud-final b/sysvinit/gentoo/cloud-final
new file mode 100644
index 00000000..140c0f8e
--- /dev/null
+++ b/sysvinit/gentoo/cloud-final
@@ -0,0 +1,11 @@
+#!/sbin/runscript
+# add depends for network, dns, fs etc
+depend() {
+ after cloud-init
+ provide cloud-final
+}
+
+start() {
+ cloud-init modules --mode final
+ eend 0
+}
diff --git a/sysvinit/gentoo/cloud-init b/sysvinit/gentoo/cloud-init
new file mode 100644
index 00000000..6f3ff8ed
--- /dev/null
+++ b/sysvinit/gentoo/cloud-init
@@ -0,0 +1,12 @@
+#!/sbin/runscript
+# add depends for network, dns, fs etc
+depend() {
+ after cloud-init-local
+ before cloud-final
+ provide cloud-init
+}
+
+start() {
+ cloud-init init
+ eend 0
+}
diff --git a/sysvinit/gentoo/cloud-init-local b/sysvinit/gentoo/cloud-init-local
new file mode 100644
index 00000000..7c39ff78
--- /dev/null
+++ b/sysvinit/gentoo/cloud-init-local
@@ -0,0 +1,13 @@
+#!/sbin/runscript
+
+depend() {
+ after cloud-config
+ before cloud-init
+ before cloud-final
+ provide cloud-init-local
+}
+
+start() {
+ cloud-init init --local
+ eend 0
+}