coreos/coreos-overlay — pull request #673 by ppickfor (2014-06-10 11:49:19+00:00)
Title: Open iscsi

my first pull request so any advise welcome :)

open iscsi userspace tools

sample cloud config

#cloud-config
coreos:
units:
- name: systemd-sysctl.service
command: restart
- name: iscsid.socket
command: start
- name: open-iscsi-discoverydb@.service
content: |
[Unit]
Description=Open-iSCSI discoverydb for sendtargets portal %I
Documentation=man:iscsiadm(8)
After=network-online.target iscsid.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/iscsiadm -m discoverydb -t st -p %I -D
RemainAfterExit=true
- name: open-iscsi-discoverydb@station30.netremedies.ca.service
command: start
- name: open-iscsi-target@.path
content: |
[Unit]
Description=Watch for Open-iSCSI target %i
Documentation=man:iscsiadm(8)
[Path]
PathExistsGlob=/etc/iscsi/send_targets/*/*%i*
- name: open-iscsi-target@.service
content: |
[Unit]
Description=Open-iSCSI target %i
Documentation=man:iscsiadm(8)
After=remote-fs.target iscsid.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/iscsiadm -m node -T %i -l
ExecStop=/usr/sbin/iscsiadm -m node -T %i -u
RemainAfterExit=true
- name: open-iscsi-target@iqn.2012-10.ca.netremedies:athlon64.netremedies.ca.data.docker.path
command: start
- name: var-lib-docker.mount
command: start
content: |
[Unit]
Description=Mount to /var/lib/docker
Before=docker.service
After=network-online.target open-iscsi-target@iqn.2012-10.ca.netremedies:athlon64.netremedies.ca.data.docker.service
Wants=open-iscsi-target@iqn.2012-10.ca.netremedies:athlon64.netremedies.ca.data.docker.service
[Mount]
What=/dev/disk/by-uuid/ae0ea887-9867-449c-87c4-7438e07a3e31
Where=/var/lib/docker
Type=btrfs
Options=rw,noatime,space_cache,subvol=@docker,noauto,x-systemd.automount,x-systemd.device-timeout=30
- name: docker.service
command: start
- name: etcd.service
command: start
- name: fleet.service
command: start
write_files:
- path: /etc/iscsi/initiatorname.iscsi
content: |
InitiatorName=iqn.2012-10.ca.netremedies:athlon64.netremedies.ca
- path: /etc/sysctl.d/sysrq.conf
content: |
kernel.sysrq=1
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzWmeDdcIu4fvVkaJvGUb/M1g2KWgfSNM9A9p+xnXVcLtL2fulvXHJF5maeJKagmN9HBVacNkK4QyhiOulCzeU9Q0Osw050Djw5s5r+XPotU24WDCnjbxY2WqSF8C3RC5Ijejgm7ib4nINdhTvZRjdO9IyJYuSr0Tl7ZAux89oEdNp/IG8DmsNIevdvdnJUYFTiMv8CiqZcN6zArAsYPpqzT+SmzzdyShCXJtWCqMMYDzLC7FhFqkkBErlnEYtdFIHfE2/0PN1V0RJCNDsQ7+2GxYGJ4LaahFFopiwxOQjxNxNrIWDUXxw1dPA2mx8x0Lhmwf5oxwr8e5fr181Ud75 peter@ubuntu64