fuel-ccp-ironic/service/ironic-conductor.yaml

115 lines
3.3 KiB
YAML

dsl_version: 0.1.0
service:
name: ironic-conductor
hostNetwork: true
kind: DaemonSet
containers:
- name: conductor
image: ironic-conductor
probes:
readiness: "true"
liveness:
command: "true"
type: "exec"
volumes:
- name: ironic
type: host
path: /var/lib/ironic
pre:
- name: ironic-post-swift-tempurl-key
dependencies:
- radosgw
type: single
command: swift --insecure --auth-version 3
--os-auth-url {{ address('keystone', keystone.public_port, with_scheme=True) }}/v3
--os-project-name {{ service_account.project }} --os-project-domain-name {{ service_account.domain }}
--os-user-domain-name {{ service_account.domain }}
--os-username {{ glance.user }} --os-password {{ glance.password }} --os-endpoint-type internalURL
post -m "Temp-URL-Key:{{ ironic.swift.temp_url_key }}"
daemon:
command: ironic-conductor --config-file /etc/ironic/ironic.conf
files:
- ironic.conf
- ssh_key
dependencies:
- ironic-db-sync
- ironic-post-swift-tempurl-key
- name: pxe
image: ironic-pxe
probes:
readiness: "true"
liveness:
command: "true"
type: "exec"
volumes:
- name: ironic
type: host
path: /var/lib/ironic
pre:
- name: pxe-bootstrap
command: /opt/ccp/bin/pxe-bootstrap.sh
daemon:
command: in.tftpd --verbose --foreground --user root --map-file /map-file
--address {% raw %}{{ network_topology["private"]["address"] }}{% endraw %}:69
/var/lib/ironic/tftpboot
files:
- pxe-bootstrap.sh
- name: ipxe
image: ironic-ipxe
probes:
readiness: "true"
liveness:
command: "true"
type: "exec"
volumes:
- name: ironic
type: host
path: /var/lib/ironic
daemon:
command: nginx -g 'daemon off; error_log stderr;'
files:
- nginx-ipxe.conf
- name: radosgw
image: radosgw
daemon:
command: radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway -d
files:
- ceph-conf
- radosgw-ceph-key
- radosgw-keyring
- name: api
image: ironic-api
daemon:
command: ironic-api --config-file /etc/ironic/ironic.conf
files:
- ironic.conf
dependencies:
- rpc
- ironic-db-sync
files:
ironic.conf:
path: /etc/ironic/ironic.conf
content: ironic.conf.j2
perm: "0600"
pxe-bootstrap.sh:
path: /opt/ccp/bin/pxe-bootstrap.sh
content: pxe-bootstrap.sh
perm: "0755"
nginx-ipxe.conf:
path: /etc/nginx/sites-enabled/nginx-ipxe.conf
content: nginx-ipxe.conf.j2
perm: "0644"
ssh_key:
path: /home/ironic/.ssh/id_rsa
content: ssh_key.j2
perm: "0400"
ceph-conf:
path: /etc/ceph/ceph.conf
content: ceph.conf.j2
radosgw-ceph-key:
path: /etc/ceph/ceph.client.radosgw.keyring
content: ceph.client.radosgw.keyring.j2
radosgw-keyring:
path: /var/lib/ceph/radosgw/ceph-rgw/keyring
content: ceph.client.radosgw.keyring.j2