From a6daf4ece3f05600ad66fea55c5220d07a71cef1 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Wed, 24 May 2017 12:44:05 +0400 Subject: [mcp] Bring in reclass system salt models Change-Id: I1a865b7524f3a5242544e60e6b36b1092721c58b Signed-off-by: Michael Polenchuk --- mcp/reclass/classes/system/salt/master/api.yml | 31 ++++++ .../classes/system/salt/master/formula/git/ccp.yml | 10 ++ .../system/salt/master/formula/git/foundation.yml | 56 ++++++++++ .../system/salt/master/formula/git/kubernetes.yml | 22 ++++ .../system/salt/master/formula/git/monitoring.yml | 14 +++ .../system/salt/master/formula/git/openstack.yml | 122 +++++++++++++++++++++ .../classes/system/salt/master/formula/git/oss.yml | 26 +++++ .../system/salt/master/formula/git/saltstack.yml | 49 +++++++++ .../system/salt/master/formula/git/stacklight.yml | 83 ++++++++++++++ .../classes/system/salt/master/formula/pkg/ccp.yml | 9 ++ .../system/salt/master/formula/pkg/foundation.yml | 33 ++++++ .../system/salt/master/formula/pkg/kubernetes.yml | 18 +++ .../system/salt/master/formula/pkg/monitoring.yml | 12 ++ .../system/salt/master/formula/pkg/openstack.yml | 93 ++++++++++++++++ .../classes/system/salt/master/formula/pkg/oss.yml | 12 ++ .../system/salt/master/formula/pkg/saltstack.yml | 39 +++++++ .../system/salt/master/formula/pkg/stacklight.yml | 54 +++++++++ mcp/reclass/classes/system/salt/master/git.yml | 14 +++ mcp/reclass/classes/system/salt/master/pkg.yml | 11 ++ mcp/reclass/classes/system/salt/master/single.yml | 19 ++++ 20 files changed, 727 insertions(+) create mode 100644 mcp/reclass/classes/system/salt/master/api.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/ccp.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/foundation.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/kubernetes.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/monitoring.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/openstack.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/oss.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/saltstack.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/git/stacklight.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/ccp.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/foundation.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/kubernetes.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/monitoring.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/openstack.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/oss.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/saltstack.yml create mode 100644 mcp/reclass/classes/system/salt/master/formula/pkg/stacklight.yml create mode 100644 mcp/reclass/classes/system/salt/master/git.yml create mode 100644 mcp/reclass/classes/system/salt/master/pkg.yml create mode 100644 mcp/reclass/classes/system/salt/master/single.yml (limited to 'mcp/reclass/classes/system/salt/master') diff --git a/mcp/reclass/classes/system/salt/master/api.yml b/mcp/reclass/classes/system/salt/master/api.yml new file mode 100644 index 000000000..b5ede2f8a --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/api.yml @@ -0,0 +1,31 @@ +parameters: + _param: + salt_master_api_port: 6969 + salt_master_api_permissions: + - '.*' + - '@local' + - '@wheel' # to allow access to all wheel modules + - '@runner' # to allow access to all runner modules + - '@jobs' # to allow access to the jobs runner and/or wheel mo + salt: + api: + enabled: true + bind: + address: 0.0.0.0 + port: ${_param:salt_master_api_port} + master: + command_timeout: 600 + user: + salt: + permissions: ${_param:salt_master_api_permissions} + linux: + system: + user: + salt: + enabled: true + name: salt + password: ${_param:salt_api_password_hash} + home: /var/tmp/salt + sudo: false + system: true + shell: /bin/false diff --git a/mcp/reclass/classes/system/salt/master/formula/git/ccp.yml b/mcp/reclass/classes/system/salt/master/formula/git/ccp.yml new file mode 100644 index 000000000..c8f1c65bb --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/ccp.yml @@ -0,0 +1,10 @@ +parameters: + salt: + master: + environment: + dev: + formula: + ccp: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-ccp.git' + revision: ${_param:salt_master_environment_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/git/foundation.yml b/mcp/reclass/classes/system/salt/master/formula/git/foundation.yml new file mode 100644 index 000000000..7e21699f8 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/foundation.yml @@ -0,0 +1,56 @@ +parameters: + salt: + master: + environment: + dev: + formula: + aptly: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-aptly.git' + revision: ${_param:salt_master_environment_revision} + bind: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-bind.git' + revision: ${_param:salt_master_environment_revision} + gerrit: + module: + gerrit.py: + enabled: true + state: + gerrit.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-gerrit.git' + revision: ${_param:salt_master_environment_revision} + jenkins: + module: + jenkins_common.py: + enabled: true + state: + jenkins_credential.py: + enabled: true + jenkins_job.py: + enabled: true + jenkins_lib.py: + enabled: true + jenkins_node.py: + enabled: true + jenkins_plugin.py: + enabled: true + jenkins_security.py: + enabled: true + jenkins_slack.py: + enabled: true + jenkins_smtp.py: + enabled: true + jenkins_user.py: + enabled: true + jenkins_view.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-jenkins.git' + revision: ${_param:salt_master_environment_revision} + openldap: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-openldap.git' + revision: ${_param:salt_master_environment_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/git/kubernetes.yml b/mcp/reclass/classes/system/salt/master/formula/git/kubernetes.yml new file mode 100644 index 000000000..fe8ad5dab --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/kubernetes.yml @@ -0,0 +1,22 @@ +parameters: + salt: + master: + environment: + dev: + formula: + kubernetes: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-kubernetes.git' + revision: ${_param:salt_master_environment_revision} + etcd: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-etcd.git' + revision: ${_param:salt_master_environment_revision} + bird: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-bird.git' + revision: ${_param:salt_master_environment_revision} + docker: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-docker.git' + revision: ${_param:salt_master_environment_revision} \ No newline at end of file diff --git a/mcp/reclass/classes/system/salt/master/formula/git/monitoring.yml b/mcp/reclass/classes/system/salt/master/formula/git/monitoring.yml new file mode 100644 index 000000000..e0cf30df1 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/monitoring.yml @@ -0,0 +1,14 @@ +parameters: + salt: + master: + environment: + dev: + formula: + prometheus: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-prometheus.git' + revision: ${_param:salt_master_environment_revision} + telegraf: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-telegraf.git' + revision: ${_param:salt_master_environment_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/git/openstack.yml b/mcp/reclass/classes/system/salt/master/formula/git/openstack.yml new file mode 100644 index 000000000..36ddfc29b --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/openstack.yml @@ -0,0 +1,122 @@ +parameters: + salt: + master: + environment: + dev: + formula: + aodh: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-aodh.git' + revision: ${_param:salt_master_environment_revision} + #avinetworks: + # source: git + # address: '${_param:salt_master_environment_repository}/salt-formula-avinetworks.git' + # revision: ${_param:salt_master_environment_revision} + billometer: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-billometer.git' + revision: ${_param:salt_master_environment_revision} + ceilometer: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-ceilometer.git' + revision: ${_param:salt_master_environment_revision} + ceph: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-ceph.git' + revision: ${_param:salt_master_environment_revision} + cinder: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-cinder.git' + revision: ${_param:salt_master_environment_revision} + designate: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-designate.git' + revision: ${_param:salt_master_environment_revision} + galera: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-galera.git' + revision: ${_param:salt_master_environment_revision} + glance: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-glance.git' + revision: ${_param:salt_master_environment_revision} + glusterfs: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-glusterfs.git' + revision: ${_param:salt_master_environment_revision} + haproxy: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-haproxy.git' + revision: ${_param:salt_master_environment_revision} + heat: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-heat.git' + revision: ${_param:salt_master_environment_revision} + horizon: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-horizon.git' + revision: ${_param:salt_master_environment_revision} + keepalived: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-keepalived.git' + revision: ${_param:salt_master_environment_revision} + keystone: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-keystone.git' + revision: ${_param:salt_master_environment_revision} + memcached: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-memcached.git' + revision: ${_param:salt_master_environment_revision} + mongodb: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-mongodb.git' + revision: ${_param:salt_master_environment_revision} + mysql: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-mysql.git' + revision: ${_param:salt_master_environment_revision} + murano: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-murano.git' + revision: ${_param:salt_master_environment_revision} + neutron: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-neutron.git' + revision: ${_param:salt_master_environment_revision} + nginx: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-nginx.git' + revision: ${_param:salt_master_environment_revision} + nova: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-nova.git' + revision: ${_param:salt_master_environment_revision} + opencontrail: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-opencontrail.git' + revision: ${_param:salt_master_environment_revision} + python: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-python.git' + revision: ${_param:salt_master_environment_revision} + rabbitmq: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-rabbitmq.git' + revision: ${_param:salt_master_environment_revision} + sahara: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-sahara.git' + revision: ${_param:salt_master_environment_revision} + statsd: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-statsd.git' + revision: ${_param:salt_master_environment_revision} + supervisor: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-supervisor.git' + revision: ${_param:salt_master_environment_revision} + swift: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-swift.git' + revision: ${_param:salt_master_environment_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/git/oss.yml b/mcp/reclass/classes/system/salt/master/formula/git/oss.yml new file mode 100644 index 000000000..e9273873a --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/oss.yml @@ -0,0 +1,26 @@ +parameters: + _param: + salt_master_oss_repository: https://gerrit.mcp.mirantis.net/salt-formulas + salt_master_oss_revision: master + salt: + master: + environment: + dev: + formula: + devops_portal: + module: + devops_utils.py: + enabled: true + source: git + address: '${_param:salt_master_oss_repository}/devops-portal.git' + revision: ${_param:salt_master_oss_revision} + rundeck: + module: + rundeck.py: + enabled: true + state: + rundeck_project.py: + enabled: true + source: git + address: '${_param:salt_master_oss_repository}/rundeck.git' + revision: ${_param:salt_master_oss_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/git/saltstack.yml b/mcp/reclass/classes/system/salt/master/formula/git/saltstack.yml new file mode 100644 index 000000000..d0ca4535a --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/saltstack.yml @@ -0,0 +1,49 @@ +parameters: + salt: + master: + environment: + dev: + formula: + backupninja: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-backupninja.git' + revision: ${_param:salt_master_environment_revision} + git: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-git.git' + revision: ${_param:salt_master_environment_revision} + iptables: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-iptables.git' + revision: ${_param:salt_master_environment_revision} + libvirt: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-libvirt.git' + revision: ${_param:salt_master_environment_revision} + linux: + module: + linux_netlink.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-linux.git' + revision: ${_param:salt_master_environment_revision} + ntp: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-ntp.git' + revision: ${_param:salt_master_environment_revision} + openssh: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-openssh.git' + revision: ${_param:salt_master_environment_revision} + reclass: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-reclass.git' + revision: ${_param:salt_master_environment_revision} + salt: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-salt.git' + revision: ${_param:salt_master_environment_revision} + sphinx: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-sphinx.git' + revision: ${_param:salt_master_environment_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/git/stacklight.yml b/mcp/reclass/classes/system/salt/master/formula/git/stacklight.yml new file mode 100644 index 000000000..ed07d827e --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/git/stacklight.yml @@ -0,0 +1,83 @@ +parameters: + salt: + master: + environment: + dev: + formula: + apache: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-apache.git' + revision: ${_param:salt_master_environment_revision} + collectd: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-collectd.git' + revision: ${_param:salt_master_environment_revision} + elasticsearch: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-elasticsearch.git' + revision: ${_param:salt_master_environment_revision} + grafana: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-grafana.git' + revision: ${_param:salt_master_environment_revision} + state: + grafana3_datasource.py: + enabled: true + grafana3_dashboard.py: + enabled: true + graphite: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-graphite.git' + revision: ${_param:salt_master_environment_revision} + heka: + module: + heka_alarming.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-heka.git' + revision: ${_param:salt_master_environment_revision} + influxdb: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-influxdb.git' + revision: ${_param:salt_master_environment_revision} + java: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-java.git' + revision: ${_param:salt_master_environment_revision} + kibana: + state: + kibana_object.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-kibana.git' + revision: ${_param:salt_master_environment_revision} + nagios: + module: + nagios_alarming.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-nagios.git' + revision: ${_param:salt_master_environment_revision} + postgresql: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-postgresql.git' + revision: ${_param:salt_master_environment_revision} + rabbitmq: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-rabbitmq.git' + revision: ${_param:salt_master_environment_revision} + redis: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-redis.git' + revision: ${_param:salt_master_environment_revision} + rsyslog: + module: + rsyslog_util.py: + enabled: true + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-rsyslog.git' + revision: ${_param:salt_master_environment_revision} + sensu: + source: git + address: '${_param:salt_master_environment_repository}/salt-formula-sensu.git' + revision: ${_param:salt_master_environment_revision} diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/ccp.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/ccp.yml new file mode 100644 index 000000000..194beb895 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/ccp.yml @@ -0,0 +1,9 @@ +parameters: + salt: + master: + environment: + prd: + formula: + ccp: + source: pkg + name: salt-formula-ccp diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/foundation.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/foundation.yml new file mode 100644 index 000000000..3eed5e900 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/foundation.yml @@ -0,0 +1,33 @@ +parameters: + salt: + master: + environment: + prd: + formula: + aptcacher: + source: pkg + name: salt-formula-aptcacher + aptly: + source: pkg + name: salt-formula-aptly + bind: + source: pkg + name: salt-formula-bind + gerrit: + source: pkg + name: salt-formula-gerrit + jenkins: + source: pkg + name: salt-formula-jenkins + freeipa: + source: pkg + name: salt-formula-freeipa + maas: + source: pkg + name: salt-formula-maas + openldap: + source: pkg + name: salt-formula-openldap + lldp: + source: pkg + name: salt-formula-lldp diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/kubernetes.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/kubernetes.yml new file mode 100644 index 000000000..7b3af30d1 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/kubernetes.yml @@ -0,0 +1,18 @@ +parameters: + salt: + master: + environment: + prd: + formula: + kubernetes: + source: pkg + name: salt-formula-kubernetes + etcd: + source: pkg + name: salt-formula-etcd + bird: + source: pkg + name: salt-formula-bird + docker: + source: pkg + name: salt-formula-docker \ No newline at end of file diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/monitoring.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/monitoring.yml new file mode 100644 index 000000000..375cbd88b --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/monitoring.yml @@ -0,0 +1,12 @@ +parameters: + salt: + master: + environment: + prd: + formula: + prometheus: + source: pkg + name: salt-formula-prometheus + telegraf: + source: pkg + name: salt-formula-telegraf diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/openstack.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/openstack.yml new file mode 100644 index 000000000..b1222d1e6 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/openstack.yml @@ -0,0 +1,93 @@ +parameters: + salt: + master: + environment: + prd: + formula: + aodh: + source: pkg + name: salt-formula-aodh + #avinetworks: + # source: pkg + # name: salt-formula-avinetworks + billometer: + source: pkg + name: salt-formula-billometer + ceilometer: + source: pkg + name: salt-formula-ceilometer + ceph: + source: pkg + name: salt-formula-ceph + cinder: + source: pkg + name: salt-formula-cinder + galera: + source: pkg + name: salt-formula-galera + glance: + source: pkg + name: salt-formula-glance + glusterfs: + source: pkg + name: salt-formula-glusterfs + designate: + source: pkg + name: salt-formula-designate + haproxy: + source: pkg + name: salt-formula-haproxy + heat: + source: pkg + name: salt-formula-heat + horizon: + source: pkg + name: salt-formula-horizon + keepalived: + source: pkg + name: salt-formula-keepalived + keystone: + source: pkg + name: salt-formula-keystone + memcached: + source: pkg + name: salt-formula-memcached + mongodb: + source: pkg + name: salt-formula-mongodb + mysql: + source: pkg + name: salt-formula-mysql + murano: + source: pkg + name: salt-formula-murano + neutron: + source: pkg + name: salt-formula-neutron + nginx: + source: pkg + name: salt-formula-nginx + nova: + source: pkg + name: salt-formula-nova + opencontrail: + source: pkg + name: salt-formula-opencontrail + python: + source: pkg + name: salt-formula-python + rabbitmq: + source: pkg + name: salt-formula-rabbitmq + sahara: + source: pkg + name: salt-formula-sahara + statsd: + source: pkg + name: salt-formula-statsd + supervisor: + source: pkg + name: salt-formula-supervisor + swift: + source: pkg + name: salt-formula-swift diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/oss.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/oss.yml new file mode 100644 index 000000000..45739d23e --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/oss.yml @@ -0,0 +1,12 @@ +parameters: + salt: + master: + environment: + prd: + formula: + devops_portal: + source: pkg + name: salt-formula-devops-portal + rundeck: + source: pkg + name: salt-formula-rundeck diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/saltstack.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/saltstack.yml new file mode 100644 index 000000000..eeff26b9e --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/saltstack.yml @@ -0,0 +1,39 @@ +parameters: + salt: + master: + environment: + prd: + formula: + backupninja: + source: pkg + name: salt-formula-backupninja + git: + source: pkg + name: salt-formula-git + iptables: + source: pkg + name: salt-formula-iptables + libvirt: + source: pkg + name: salt-formula-libvirt + linux: + source: pkg + name: salt-formula-linux + nginx: + source: pkg + name: salt-formula-nginx + ntp: + source: pkg + name: salt-formula-ntp + openssh: + source: pkg + name: salt-formula-openssh + reclass: + source: pkg + name: salt-formula-reclass + salt: + source: pkg + name: salt-formula-salt + sphinx: + source: pkg + name: salt-formula-sphinx diff --git a/mcp/reclass/classes/system/salt/master/formula/pkg/stacklight.yml b/mcp/reclass/classes/system/salt/master/formula/pkg/stacklight.yml new file mode 100644 index 000000000..4fe75c0f0 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/formula/pkg/stacklight.yml @@ -0,0 +1,54 @@ +parameters: + salt: + master: + environment: + prd: + formula: + apache: + source: pkg + name: salt-formula-apache + collectd: + source: pkg + name: salt-formula-collectd + elasticsearch: + source: pkg + name: salt-formula-elasticsearch + grafana: + source: pkg + name: salt-formula-grafana + graphite: + source: pkg + name: salt-formula-graphite + heka: + source: pkg + name: salt-formula-heka + influxdb: + source: pkg + name: salt-formula-influxdb + java: + source: pkg + name: salt-formula-java + kibana: + source: pkg + name: salt-formula-kibana + #nagios: + # source: pkg + # name: salt-formula-nagios + postgresql: + source: pkg + name: salt-formula-postgresql + rabbitmq: + source: pkg + name: salt-formula-rabbitmq + redis: + source: pkg + name: salt-formula-redis + rsyslog: + source: pkg + name: salt-formula-rsyslog + sensu: + source: pkg + name: salt-formula-sensu + nagios: + source: pkg + name: salt-formula-nagios diff --git a/mcp/reclass/classes/system/salt/master/git.yml b/mcp/reclass/classes/system/salt/master/git.yml new file mode 100644 index 000000000..267bdb192 --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/git.yml @@ -0,0 +1,14 @@ +classes: +- system.salt.master.single +- system.salt.master.formula.git.ccp +- system.salt.master.formula.git.foundation +- system.salt.master.formula.git.kubernetes +- system.salt.master.formula.git.openstack +- system.salt.master.formula.git.oss +- system.salt.master.formula.git.saltstack +- system.salt.master.formula.git.stacklight +- system.salt.master.formula.git.monitoring +parameters: + _param: + salt_master_environment_repository: "https://github.com/salt-formulas" + salt_master_environment_revision: master diff --git a/mcp/reclass/classes/system/salt/master/pkg.yml b/mcp/reclass/classes/system/salt/master/pkg.yml new file mode 100644 index 000000000..1001d49de --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/pkg.yml @@ -0,0 +1,11 @@ +classes: +- system.salt.master.single +- system.salt.master.formula.pkg.ccp +- system.salt.master.formula.pkg.foundation +- system.salt.master.formula.pkg.kubernetes +- system.salt.master.formula.pkg.openstack +- system.salt.master.formula.pkg.oss +- system.salt.master.formula.pkg.saltstack +- system.salt.master.formula.pkg.stacklight +- system.salt.master.formula.pkg.monitoring +- system.linux.system.repo.mcp.salt diff --git a/mcp/reclass/classes/system/salt/master/single.yml b/mcp/reclass/classes/system/salt/master/single.yml new file mode 100644 index 000000000..9764a970a --- /dev/null +++ b/mcp/reclass/classes/system/salt/master/single.yml @@ -0,0 +1,19 @@ +classes: +- service.git.client +- service.salt.master.single +parameters: + linux: + system: + sysctl: + net.core.rmem_max: 16777216 + net.core.wmem_max: 16777216 + net.ipv4.tcp_rmem: 4096 87380 16777216 + net.ipv4.tcp_wmem: 4096 87380 16777216 + salt: + master: + accept_policy: auto_accept + worker_threads: 40 + command_timeout: 10 + peer: + '.*': + - x509.sign_remote_certificate -- cgit 1.2.3-korg