diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-10-30 17:14:09 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-10-30 17:14:09 -0400 |
commit | 6d9f6dfcf7e28f398b426c18ca36adeec24f8061 (patch) | |
tree | c5bbe4de1e9095313c3f7ec9388be9aed3884ff0 | |
parent | 2a84a2603f22e5362c8a6620bea51df220245d9f (diff) | |
download | vyos-cloud-init-6d9f6dfcf7e28f398b426c18ca36adeec24f8061.tar.gz vyos-cloud-init-6d9f6dfcf7e28f398b426c18ca36adeec24f8061.zip |
Add sample/example systemd config files
This imports the systemd config files that Garrett Holmstrom added to
fedora. Its not essential that thay be here, rather than just maintained
as distribution delta, but there exists upstart files here.
taken from
git://pkgs.fedoraproject.org/cloud-init.git
commit 87f33190f43d2b26cced4597e7298835024466c2
Author: Garrett Holmstrom <gholms@fedoraproject.org>
Patch2: cloud-init-0.6.2-systemd.patch
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | systemd/cloud-config.service | 13 | ||||
-rw-r--r-- | systemd/cloud-config.target | 10 | ||||
-rw-r--r-- | systemd/cloud-final.service | 13 | ||||
-rw-r--r-- | systemd/cloud-init-local.service | 12 | ||||
-rw-r--r-- | systemd/cloud-init.service | 13 |
6 files changed, 63 insertions, 0 deletions
@@ -1,3 +1,5 @@ +0.6.3: + - add sample systemd config files [Garrett Holmstrom] 0.6.2: - fix bug where update was not done unless update was explicitly set. It would not be run if 'upgrade' or packages were set to be installed diff --git a/systemd/cloud-config.service b/systemd/cloud-config.service new file mode 100644 index 00000000..696230f6 --- /dev/null +++ b/systemd/cloud-config.service @@ -0,0 +1,13 @@ +[Unit] +Description=Apply the settings specified in cloud-config +After=network.target syslog.target cloud-config.target +Requires=cloud-config.target +Wants=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/cloud-init-cfg all config +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/systemd/cloud-config.target b/systemd/cloud-config.target new file mode 100644 index 00000000..28f5bcf1 --- /dev/null +++ b/systemd/cloud-config.target @@ -0,0 +1,10 @@ +# cloud-init normally emits a "cloud-config" upstart event to inform third +# parties that cloud-config is available, which does us no good when we're +# using systemd. cloud-config.target serves as this synchronization point +# instead. Services that would "start on cloud-config" with upstart can +# instead use "After=cloud-config.target" and "Wants=cloud-config.target" +# as appropriate. + +[Unit] +Description=Cloud-config availability +Requires=cloud-init-local.service cloud-init.service diff --git a/systemd/cloud-final.service b/systemd/cloud-final.service new file mode 100644 index 00000000..23275ee5 --- /dev/null +++ b/systemd/cloud-final.service @@ -0,0 +1,13 @@ +[Unit] +Description=Execute cloud user/final scripts +After=network.target syslog.target cloud-config.service rc-local.service +Requires=cloud-config.target +Wants=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/cloud-init-cfg all final +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/systemd/cloud-init-local.service b/systemd/cloud-init-local.service new file mode 100644 index 00000000..2d57567f --- /dev/null +++ b/systemd/cloud-init-local.service @@ -0,0 +1,12 @@ +[Unit] +Description=Initial cloud-init job (pre-networking) +Wants=local-fs.target +After=local-fs.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/cloud-init start-local +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service new file mode 100644 index 00000000..b8f6f49d --- /dev/null +++ b/systemd/cloud-init.service @@ -0,0 +1,13 @@ +[Unit] +Description=Initial cloud-init job (metadata service crawler) +After=local-fs.target network.target cloud-init-local.service +Requires=network.target +Wants=local-fs.target cloud-init-local.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/cloud-init start +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target |