diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-04-13 15:42:05 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-04-16 16:23:04 +0000 |
commit | 0425200cc159e6baa007f8a80f451bb670452c71 (patch) | |
tree | 85aeb0594b69323acd2b958040c268916efb79cf /strata/openstack-services/rtslib-fb.morph | |
parent | 1ec9fced3606cf71c80414093289672ef56c4b92 (diff) | |
download | definitions-0425200cc159e6baa007f8a80f451bb670452c71.tar.gz |
Add Openstack system
Add Openstack system and stratum pointing they components to
Juno tag 2014.2.1.
Change-Id: Iaa9a31c44b0a2c711c5a147dc3156bab14577fb7
Signed-off-by: Pedro Alvarez <pedro.alvarez@codethink.co.uk>
Signed-off-by: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Signed-off-by: Richard Maw <richard.maw@codethink.co.uk>
Signed-off-by: Richard Ipsum <richard.ipsum@codethink.co.uk>
Signed-off-by: Patrick Darley <patrick.darley@codethink.co.uk>
Signed-off-by: Zara Zaimeche <zara.zaimeche@codethink.co.uk>
Signed-off-by: Mike Smith <mike.smith@codethink.co.uk>
Diffstat (limited to 'strata/openstack-services/rtslib-fb.morph')
-rw-r--r-- | strata/openstack-services/rtslib-fb.morph | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/strata/openstack-services/rtslib-fb.morph b/strata/openstack-services/rtslib-fb.morph new file mode 100644 index 00000000..26de3f9b --- /dev/null +++ b/strata/openstack-services/rtslib-fb.morph @@ -0,0 +1,27 @@ +name: rtslib-fb +kind: chunk +build-system: python-distutils +post-install-commands: +- mkdir -p "$DESTDIR$PREFIX"/lib/systemd/system + +# The following systemd unit is from the fedora package see +# http://pkgs.fedoraproject.org/cgit/python-rtslib.git/tree/target.service for +# more information + +- | + install -D -m 0644 /proc/self/fd/0 <<'EOF' "$DESTDIR$PREFIX"/lib/systemd/system/target.service + [Unit] + Description=Restore LIO kernel target configuration + Requires=sys-kernel-config.mount + After=sys-kernel-config.mount network.target local-fs.target + + [Service] + Type=oneshot + RemainAfterExit=yes + ExecStart=/usr/bin/targetctl restore + ExecStop=/usr/bin/targetctl clear + SyslogIdentifier=target + + [Install] + WantedBy=multi-user.target + EOF |