From f52ddcb67f75aeb6bd72fecfd4a133ae1eb56666 Mon Sep 17 00:00:00 2001 From: Paul McGoldrick Date: Thu, 28 Sep 2017 10:03:38 -0700 Subject: initial seed code commit VVP-3 Change-Id: I6c9fede9b75ebaf1bcba2ad14f09f021fea63d21 Signed-off-by: Paul McGoldrick --- zones/development/devkit_environment_multi | 47 +++++++++ zones/development/devkit_environment_single | 47 +++++++++ zones/development/inventory/group_vars/all/all.yml | 88 ++++++++++++++++ .../development/inventory/group_vars/all/rgws.yml | 42 ++++++++ .../inventory/group_vars/all/unencrypted_vault.yml | 117 +++++++++++++++++++++ .../development/inventory/group_vars/bootstrap.yml | 82 +++++++++++++++ zones/development/inventory/group_vars/local.yml | 72 +++++++++++++ zones/development/inventory/group_vars/mons.yml | 66 ++++++++++++ zones/development/inventory/group_vars/rbdhost.yml | 56 ++++++++++ zones/development/inventory/inventory | 78 ++++++++++++++ 10 files changed, 695 insertions(+) create mode 100755 zones/development/devkit_environment_multi create mode 100755 zones/development/devkit_environment_single create mode 100755 zones/development/inventory/group_vars/all/all.yml create mode 100755 zones/development/inventory/group_vars/all/rgws.yml create mode 100755 zones/development/inventory/group_vars/all/unencrypted_vault.yml create mode 100755 zones/development/inventory/group_vars/bootstrap.yml create mode 100755 zones/development/inventory/group_vars/local.yml create mode 100755 zones/development/inventory/group_vars/mons.yml create mode 100755 zones/development/inventory/group_vars/rbdhost.yml create mode 100755 zones/development/inventory/inventory (limited to 'zones') diff --git a/zones/development/devkit_environment_multi b/zones/development/devkit_environment_multi new file mode 100755 index 0000000..a6bde88 --- /dev/null +++ b/zones/development/devkit_environment_multi @@ -0,0 +1,47 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +export DEVKIT_NAME="Vagrant Multi" +export VVP_DEVKIT=multi +export DEVKIT_ZONE_DIR=${DEVKIT_DIR}/zones/development +export VVP_DEVKIT_VAGRANT_PROVISION=true +export VAGRANT_CWD=${DEVKIT_DIR}/vagrant/pxe +export ANSIBLE_INVENTORY_DIR=${DEVKIT_ZONE_DIR}/inventory +export ANSIBLE_VAULT_PASSWORD_FILE=${DEVKIT_ZONE_DIR}/.vault_password +export ANSIBLE_CONFIG=${DEVKIT_DIR}/ansible/ansible.cfg +export KUBECONFIG=${DEVKIT_ZONE_DIR}/k8/kubeconfig diff --git a/zones/development/devkit_environment_single b/zones/development/devkit_environment_single new file mode 100755 index 0000000..28eef6f --- /dev/null +++ b/zones/development/devkit_environment_single @@ -0,0 +1,47 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +export DEVKIT_NAME="Vagrant Single" +export VVP_DEVKIT=single +export DEVKIT_ZONE_DIR=${DEVKIT_DIR}/zones/development +export VVP_DEVKIT_VAGRANT_PROVISION=true +export VAGRANT_CWD=${DEVKIT_DIR}/vagrant/pxe +export ANSIBLE_INVENTORY_DIR=${DEVKIT_ZONE_DIR}/inventory +export ANSIBLE_VAULT_PASSWORD_FILE=${DEVKIT_ZONE_DIR}/.vault_password +export ANSIBLE_CONFIG=${DEVKIT_DIR}/ansible/ansible.cfg +export KUBECONFIG=${DEVKIT_ZONE_DIR}/k8/kubeconfig diff --git a/zones/development/inventory/group_vars/all/all.yml b/zones/development/inventory/group_vars/all/all.yml new file mode 100755 index 0000000..905d7f6 --- /dev/null +++ b/zones/development/inventory/group_vars/all/all.yml @@ -0,0 +1,88 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +--- +hosts: + - name: "coreos-01" + ssh_ip: 10.0.2.15 + mac: "08:00:27:66:95:9E" + dnsmasq_config: + - "08:00:27:66:95:9E,10.252.0.12,coreos-01,infinite,set:coreos" + - "08:00:27:66:95:8E,10.220.220.12,coreos-01,infinite,set:coreos" + os: coreos + role: controller + etcd_role: member + + - name: "coreos-02" + ssh_ip: 10.0.2.15 + mac: "08:00:27:66:95:9F" + dnsmasq_config: + - "08:00:27:66:95:9F,10.252.0.13,coreos-02,infinite,set:coreos" + - "08:00:27:66:95:8F,10.220.220.13,coreos-02,infinite,set:coreos" + os: coreos + role: worker + etcd_role: member + + - name: "coreos-03" + ssh_ip: 10.0.2.15 + mac: "08:00:27:66:95:A0" + dnsmasq_config: + - "08:00:27:66:95:A0,10.252.0.14,coreos-03,infinite,set:coreos" + - "08:00:27:66:95:A3,10.220.220.14,coreos-03,infinite,set:coreos" + os: coreos + role: worker + etcd_role: member + + - name: "ceph-01" + ssh_ip: 10.0.2.15 + dnsmasq_config: + - "08:00:27:66:95:A1,10.252.0.21,ceph-01,infinite" + os: centos + role: "" + etcd_role: "" +ice_environment: development +domain: development.vvp.example.com +k8s_controller_port: 8443 + +fetch_directory: "{{inventory_dir}}/../fetch" +mon_ips: + - 10.252.0.21 +rgws: + - name: ceph-01 + ip: 10.252.0.21 +radosgw_civetweb_port: "8080" diff --git a/zones/development/inventory/group_vars/all/rgws.yml b/zones/development/inventory/group_vars/all/rgws.yml new file mode 100755 index 0000000..5835a49 --- /dev/null +++ b/zones/development/inventory/group_vars/all/rgws.yml @@ -0,0 +1,42 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +--- +# Note this will break if facts on rgws hosts are not collected. But we shouldn't need this for rendering anymore. +radosgw_civetweb_bind_ip: "{{ hostvars[inventory_hostname]['ansible_' + monitor_interface]['ipv4']['address'] }}" +radosgw_s3_auth_use_keystone: false diff --git a/zones/development/inventory/group_vars/all/unencrypted_vault.yml b/zones/development/inventory/group_vars/all/unencrypted_vault.yml new file mode 100755 index 0000000..d967071 --- /dev/null +++ b/zones/development/inventory/group_vars/all/unencrypted_vault.yml @@ -0,0 +1,117 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +--- +# cert for secure https +# https://stackoverflow.com/questions/10175812/how-to-create-a-self-signed-certificate-with-openssl#10176685 +# site_pem_cert: +# site_pem_key: +# site_pem: | +# {{site_pem_cert}} +# {{site_pem_key}} +site_pem: + +# EM database +vault_em_postgresql_user: em_postgresuser +vault_em_postgresql_password: em_postgrespass + +# CMS database +vault_cms_postgresql_user: cms_postgresuser +vault_cms_postgresql_password: cms_postgrespass + +# EM Secret Key +# >>> from django.core.management.utils import get_random_secret_key +# >>> get_random_secret_key() +vault_em_secret_key: "#91e__w3k=781@y(e_#6hu6t&h254#u)&bj+m9thx%k!6^*06r" + +# Information for sending email from the platform +vault_email_host: 'localhost' +vault_email_host_user: +vault_email_host_password: + +# pwgen -1 32 +vault_engagementmgr_webhook_token: Aip7ohx1eiHaeshoh9shailu9eex7tha + +# pwgen -1 20 +vault_gitlab_authentication_token: jadu6yohjaiy8Wob0IeK + +#pwget -1 16 +vault_jenkins_admin_password: koiyeBaiTh3kaiNg +vault_gitlab_admin_password: ao6ij6wohWeiqu4e + +# python3 -c 'import bcrypt as b;print(b.hashpw(b"",b.gensalt(rounds=10, prefix=b"2a")).decode())' +vault_jenkins_admin_password_hash: $10$n2WJZasbQkd8PdySxQDo1uB67Wv7QfG0tvKuidbLC4w1Ss6p3eZEq + +# ssh-keygen -t ed25519 +vault_jenkins_deploy_key: | + -----BEGIN OPENSSH PRIVATE KEY----- + b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW + QyNTUxOQAAACCD10jzo4iRf1xm63IlLHJFy5T+AhRufzvKvgi0HpgTUAAAAJjWwJd91sCX + fQAAAAtzc2gtZWQyNTUxOQAAACCD10jzo4iRf1xm63IlLHJFy5T+AhRufzvKvgi0HpgTUA + AAAEAWFKMWLl6FgEBug971+atNYBt8GduWzCYgt/j9Tu4Sh4PXSPOjiJF/XGbrciUsckXL + lP4CFG5/O8q+CLQemBNQAAAAE3BhdWxAUGF1bCdzIE1hYyBQcm8BAg== + -----END OPENSSH PRIVATE KEY----- +vault_jenkins_deploy_key_pub: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIPXSPOjiJF/XGbrciUsckXLlP4CFG5/O8q+CLQemBNQ + +#CI application +vault_ci_sqlite_user: cidbuser +vault_ci_postgresql_password: cidbpass +vault_ci_admin_user: ciadminuser +vault_ci_admin_mail: ciadminmail@example.com +vault_ci_admin_password: ciadminpass + +vault_cms_secret_key: (+dm_rj(005=^evzesd3#xpy$-$c^j#clzilbx&_=0lh7o-34# +vault_cms_nevercache_key: a_j-g5h+3)o@2wiasmbg(huxpujh=95(p-$vz1xj&t+m)+-u84 + +#CMS application +vault_cms_app_user: cmsappuser +vault_cms_app_user_password: cmsappuserpassword +vault_cms_app_user_mail: cmsappuser@example.com +# pwgen -1 40 +vault_cms_app_client_id: EeB4Xeimooc6xieSeeKah8dae1eipae4otaeshee +# pwgen -1 128 +vault_cms_app_client_secret: haiMoopieZee1wei3lef4gaeyia2vahwohth0maid9ith2pheeshaithuToor2Johshei5baey7Eiquaetheib8quaiquee7phiath7eub2aiNaic3ou9vaizebeiF5u +vault_haproxy_user: haproxyuser +vault_haproxy_pass: haproxypass + +# simplifies conditionals that check for e.g. 'vault_slack_tokens.notifications is defined' +vault_slack_tokens: + +# Rados Gateway (Amazon S3-protocol Ceph interface) +vault_aws_access_key_id: 2ZB19U9D8K6XVJG75VX0 +vault_aws_secret_access_key: 7xVWeqsLIotKOua0xvhapIsCt1VU0x6M2E4fTRKO diff --git a/zones/development/inventory/group_vars/bootstrap.yml b/zones/development/inventory/group_vars/bootstrap.yml new file mode 100755 index 0000000..e1b4d77 --- /dev/null +++ b/zones/development/inventory/group_vars/bootstrap.yml @@ -0,0 +1,82 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +coreos_channel: "stable" +coreos_version: "1409.7.0" +k8s_version: "v1.5.2_coreos.2" +container_runtime: docker +ops_public_interface: eth2 +ops_management_interface: eth1 +ops_management_ip: 10.252.0.2 + +flanneld_interface: eth1 +dhcp_ranges: + - 10.252.0.10,10.252.0.200,255.255.255.0,12h + - 10.220.220.10,10.220.220.200,255.255.255.0,12h +additional_interfaces: + eth2: 10.220.220.2/24 +additional_gateways: + eth1: "" + eth2: "" +manually_grow_root: false +pxe_boot: true +pxe_chainload: true +mounts: [] +disks: + - device: /dev/sda + wipe_table: true + partitions: + - label: ROOT + number: 0 + +filesystems: + - device: "/dev/sda9" + format: "ext4" + create: + force: true + options: + - "-LROOT" + +deploy_jeeves: False +ssh_keys: + - "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" +k8s_apiserver_advertise_address: 10.252.0.12 +matchbox_dir: "{{files_dir}}/matchbox" +files_dir: /opt/ice-devkit +assets_dir: "{{files_dir}}/assets" +coreos_assets_dir: "{{assets_dir}}/coreos/{{coreos_version}}" diff --git a/zones/development/inventory/group_vars/local.yml b/zones/development/inventory/group_vars/local.yml new file mode 100755 index 0000000..5e42769 --- /dev/null +++ b/zones/development/inventory/group_vars/local.yml @@ -0,0 +1,72 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +enable_liveness_probes: false +container_uri: example.com/vvp +container_tag: develop +k8_config_dir: "{{inventory_dir}}/../k8" +external_ips: +- 10.220.220.12 +- 10.220.220.13 +- 10.220.220.14 +internal_ips: + - 10.252.0.12 + - 10.252.0.13 + - 10.252.0.14 +git_dns_name: dev-git.vvp.example.com +ci_dns_name: dev-ci.vvp.example.com +s3_dns_name: dev-s3.vvp.example.com +cms_dns_name: dev-cms.vvp.example.com +em_domain_name: development.vvp.example.com +django_debug_mode: True +livenessProbe_initialDelaySeconds: + gitlab: 300 + postgresql: 240 + em: 120 +em_internal_dns_name: dev-em.vvp.example.com +jenkins_admin_config_xml: | + + + admin + + + + #jbcrypt:{{vault_jenkins_admin_password_hash}} + + + diff --git a/zones/development/inventory/group_vars/mons.yml b/zones/development/inventory/group_vars/mons.yml new file mode 100755 index 0000000..a41ca48 --- /dev/null +++ b/zones/development/inventory/group_vars/mons.yml @@ -0,0 +1,66 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +ceph_release: jewel +ceph_stable_release: jewel +upgrade_ceph_packages: true +ceph_origin: 'upstream' # or 'distro' +ceph_stable: true # use ceph stable branch +ceph_stable_redhat_distro: el7 +generate_fsid: true +monitor_interface: eth1 +mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf +journal_size: 10240 +public_network: 10.252.0.0/24 +cluster_network: "{{ public_network }}" +osd_mkfs_type: xfs +osd_mkfs_options_xfs: -f -i size=2048 +osd_mount_options_xfs: noatime,largeio,inode64,swalloc +# ceph osds.yml +fsid: "{{ cluster_uuid.stdout }}" +devices: + - /dev/sdb +osd_auto_discovery: false +journal_collocation: true +raw_multi_journal: false +osd_directory: false +bluestore: false +ceph_conf_overrides: + global: + osd pool default size: 2 + osd pool default min size: 1 diff --git a/zones/development/inventory/group_vars/rbdhost.yml b/zones/development/inventory/group_vars/rbdhost.yml new file mode 100755 index 0000000..3ec55e2 --- /dev/null +++ b/zones/development/inventory/group_vars/rbdhost.yml @@ -0,0 +1,56 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +rbd_volumes: + - mount: "jenkins" + size: 25000 + type: xfs + directories: + - name: / + owner: 1000 + group: 1000 + - mount: "gitlab" + size: 25000 + type: xfs + directories: + - var/opt/gitlab + - var/log/gitlab + - etc/gitlab + - mount: "em_postgresql" + size: 25000 + type: xfs diff --git a/zones/development/inventory/inventory b/zones/development/inventory/inventory new file mode 100755 index 0000000..fc7eaed --- /dev/null +++ b/zones/development/inventory/inventory @@ -0,0 +1,78 @@ +# -*- encoding: utf-8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/engagementmgr +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the “License”); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the “License”); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +ceph-01 ansible_ssh_host=127.0.0.1 ansible_ssh_port=2521 ansible_ssh_user='vagrant' ansible_ssh_private_key_file='~/.vagrant.d/insecure_private_key' +ops-01 ansible_ssh_host=127.0.0.1 ansible_ssh_port=2502 ansible_ssh_user='vagrant' ansible_ssh_private_key_file='~/.vagrant.d/insecure_private_key' +coreos-01 ansible_ssh_host=127.0.0.1 ansible_ssh_port=2512 ansible_ssh_user='vagrant' ansible_ssh_private_key_file='../vagrant/multi-node/.vagrant/machines/coreos-01/virtualbox/private_key' +coreos-02 ansible_ssh_host=127.0.0.1 ansible_ssh_port=2513 ansible_ssh_user='vagrant' ansible_ssh_private_key_file='../vagrant/multi-node/.vagrant/machines/coreos-02/virtualbox/private_key' +coreos-03 ansible_ssh_host=127.0.0.1 ansible_ssh_port=2514 ansible_ssh_user='vagrant' ansible_ssh_private_key_file='../vagrant/multi-node/.vagrant/machines/coreos-03/virtualbox/private_key' + +[local] +localhost + +[bootstrap] +ops-01 + +[centos] +ops-01 +ceph-01 + +[ceph] +ceph-01 + +[osds] +ceph-01 + +[mons] +ceph-01 + +[rgws] +ceph-01 + +[rbdhost] +ceph-01 + +[coreos] +coreos-01 +coreos-02 +coreos-03 + +[container-hosts] +coreos-01 +coreos-02 +coreos-03 -- cgit 1.2.3-korg