Initial commit

This patch adds initial formula that allow to install Ironic api
and conductor.

Change-Id: I21fe4cd93454ed64277ba6756a591155d0052dc8
diff --git a/metadata/service/api/cluster.yml b/metadata/service/api/cluster.yml
new file mode 100644
index 0000000..c6a5002
--- /dev/null
+++ b/metadata/service/api/cluster.yml
@@ -0,0 +1,37 @@
+applications:
+  - ironic
+parameters:
+  ironic:
+    api:
+      enabled: true
+      version: ${_param:ironic_version}
+      bind:
+        address: ${_param:cluster_local_address}
+        port: 6385
+        protocol: 'http'
+      message_queue:
+        engine: rabbitmq
+        port: 5672
+        user: openstack
+        password: ${_param:rabbitmq_openstack_password}
+        virtual_host: '/openstack'
+        host: ${_param:cluster_vip_address}
+      database:
+        engine: mysql
+        host: ${_param:cluster_vip_address}
+        port: 3306
+        name: ironic
+        user: ironic
+        password: ${_param:mysql_ironic_password}
+      identity:
+        engine: keystone
+        region: RegionOne
+        host: ${_param:cluster_vip_address}
+        port: 35357
+        user: ironic
+        password: ${_param:keystone_ironic_password}
+        tenant: service
+        auth_type: password
+        user_domain_id: default
+        project_domain_id: default
+        protocol: 'http'
diff --git a/metadata/service/api/single.yml b/metadata/service/api/single.yml
new file mode 100644
index 0000000..936f250
--- /dev/null
+++ b/metadata/service/api/single.yml
@@ -0,0 +1,37 @@
+applications:
+  - ironic
+parameters:
+  ironic:
+    api:
+      enabled: true
+      version: ${_param:ironic_version}
+      bind:
+        address: ${_param:single_address}
+        port: 6385
+        protocol: 'http'
+      message_queue:
+        engine: rabbitmq
+        port: 5672
+        user: openstack
+        password: ${_param:rabbitmq_openstack_password}
+        virtual_host: '/openstack'
+        host: ${_param:single_address}
+      database:
+        engine: mysql
+        host: ${_param:single_address}
+        port: 3306
+        name: ironic
+        user: ironic
+        password: ${_param:mysql_ironic_password}
+      identity:
+        engine: keystone
+        region: RegionOne
+        host: ${_param:single_address}
+        port: 35357
+        user: ironic
+        password: ${_param:keystone_ironic_password}
+        tenant: service
+        auth_type: password
+        user_domain_id: default
+        project_domain_id: default
+        protocol: 'http'
diff --git a/metadata/service/conductor/cluster.yml b/metadata/service/conductor/cluster.yml
new file mode 100644
index 0000000..49360f7
--- /dev/null
+++ b/metadata/service/conductor/cluster.yml
@@ -0,0 +1,52 @@
+applications:
+  - ironic
+parameters:
+  ironic:
+    conductor:
+      enabled: true
+      version: ${_param:ironic_version}
+      message_queue:
+        engine: rabbitmq
+        port: 5672
+        user: openstack
+        password: ${_param:rabbitmq_openstack_password}
+        virtual_host: '/openstack'
+        host: ${_param:cluster_vip_address}
+      database:
+        engine: mysql
+        host: ${_param:cluster_vip_address}
+        port: 3306
+        name: ironic
+        user: ironic
+        password: ${_param:mysql_ironic_password}
+      identity:
+        engine: keystone
+        region: RegionOne
+        host: ${_param:cluster_vip_address}
+        port: 35357
+        user: ironic
+        password: ${_param:keystone_ironic_password}
+        tenant: service
+        auth_type: password
+        user_domain_id: default
+        project_domain_id: default
+        protocol: 'http'
+      neutron:
+        cleaning_network: baremetal
+        provisioning_network: baremetal
+        project_domain_id: ${ironic:conductor:identity:project_domain_id}
+        user_domain_id: ${ironic:conductor:identity:user_domain_id}
+        password: ${ironic:conductor:identity:password}
+        username: ${ironic:conductor:identity:user}
+      enabled_drivers:
+        - agent_ipmitool
+        - fake
+      automated_clean: false
+      http_url: 'http://${_param:cluster_vip_address}'
+      api_url: 'http://${_param:cluster_vip_address}:6385'
+      pxe_config_template: '$pybasedir/drivers/modules/ipxe_config.template'
+      pxe_bootfile_name: '/undionly.kpxe'
+      ipxe_enabled: true
+      http_root: '/var/www/httproot'
+      tftp_root: '/var/lib/tftpboot'
+      tftp_master_path: '/var/lib/tftpboot/master_images'
diff --git a/metadata/service/conductor/single.yml b/metadata/service/conductor/single.yml
new file mode 100644
index 0000000..d88ff77
--- /dev/null
+++ b/metadata/service/conductor/single.yml
@@ -0,0 +1,53 @@
+applications:
+  - ironic
+parameters:
+  ironic:
+    conductor:
+      enabled: true
+      version: ${_param:ironic_version}
+      message_queue:
+        engine: rabbitmq
+        port: 5672
+        user: openstack
+        password: ${_param:rabbitmq_openstack_password}
+        virtual_host: '/openstack'
+        host: ${_param:single_address}
+      database:
+        engine: mysql
+        host: ${_param:single_address}
+        port: 3306
+        name: ironic
+        user: ironic
+        password: ${_param:mysql_ironic_password}
+      identity:
+        engine: keystone
+        region: RegionOne
+        host: ${_param:single_address}
+        port: 35357
+        user: ironic
+        password: ${_param:keystone_ironic_password}
+        tenant: service
+        auth_type: password
+        user_domain_id: default
+        project_domain_id: default
+        protocol: 'http'
+      neutron:
+        cleaning_network: baremetal
+        provisioning_network: baremetal
+        project_domain_id: ${ironic:conductor:identity:project_domain_id}
+        user_domain_id: ${ironic:conductor:identity:user_domain_id}
+        password: ${ironic:conductor:identity:password}
+        username: ${ironic:conductor:identity:user}
+
+      enabled_drivers:
+        - agent_ipmitool
+        - fake
+      automated_clean: false
+      http_url: 'http://${_param:single_address}'
+      api_url: 'http://${_param:single_address}:6385'
+      pxe_config_template: '$pybasedir/drivers/modules/ipxe_config.template'
+      pxe_bootfile_name: '/undionly.kpxe'
+      ipxe_enabled: true
+      http_root: '/var/www/httproot'
+      tftp_root: '/var/lib/tftpboot'
+      tftp_master_path: '/var/lib/tftpboot/master_images'
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
new file mode 100644
index 0000000..f6446d5
--- /dev/null
+++ b/metadata/service/support.yml
@@ -0,0 +1,11 @@
+parameters:
+  ironic:
+    _support:
+      collectd:
+        enabled: false
+      heka:
+        enabled: false
+      sensu:
+        enabled: true
+      sphinx:
+        enabled: true