Skip to content

Commit

Permalink
Merge pull request #3 from Didier-Lalli/master
Browse files Browse the repository at this point in the history
Updated integration pack to support Synergy and Image Streamer
  • Loading branch information
Didier-Lalli authored Jun 29, 2017
2 parents 89d6c5e + cb3262d commit 8950a7a
Show file tree
Hide file tree
Showing 52 changed files with 1,232 additions and 563 deletions.
Binary file added DCOS Integration Pack Artifact Bundle.zip
Binary file not shown.
1,126 changes: 719 additions & 407 deletions README.md

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions config.json

This file was deleted.

Binary file added doc/ComposableInfrastructurePackforMesosphere.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions files/ip-detect-on-HPE-CCLASS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -o nounset -o errexit
export PATH=/usr/sbin:/usr/bin:$PATH
if_name=`ifconfig | grep eno | cut --delimiter=: -f 1`
echo $(ip addr show $if_name | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
5 changes: 5 additions & 0 deletions files/ip-detect-on-HPE-SYNERGY
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -o nounset -o errexit
export PATH=/usr/sbin:/usr/bin:$PATH
if_name=`ifconfig | grep ens | cut --delimiter=: -f 1`
echo $(ip addr show $if_name | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
118 changes: 64 additions & 54 deletions group_vars/all
Original file line number Diff line number Diff line change
@@ -1,54 +1,64 @@
###
# Copyright (2016) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file 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.
###

---
# Variables here are applicable to all host groups
httpd_port: 80

# DCOS Settings
DCOS_GENERATE_CONFIG_PATH: '/root/dcos-cache/dcos_generate_config.sh' # copied with $ curl -O https://downloads.dcos.io/dcos/stable/dcos_generate_config.sh
DCOS_CLUSTER_NAME: 'DCOS-ONEVIEW'
DCOS_BOOTSTRAP_URL: 'http://bootstrap.cilab.net'

# ICsp Settings
icsp: <ICSPIPADDRESS> # ICsp appliance IP Address
icsp_username: <ICSPUSERNAME> # ICsp user name
icsp_password: <ICSPUSERPASSWORD> # ICsp password
osbp_custom_attributes:
- SSH_CERT: "{{ lookup('file', '~/.ssh/root_ansible.pub') }}"

#iLO Credentials
server_username: <ILOUSERNAME> # iLO credentials for the target server that will be registered in ICsp
server_password: <ILOPASSWORD> #iLO password

# Network Settings
domain_name: "cilab.net"
dns_server: 192.168.1.1

network_config:
hostname: "{{ inventory_hostname }}"
domain: "{{ domain_name }}"
interfaces:
- macAddress: "{{ server_profile.connections[0].mac }}"
enabled: true
dhcpv4: true
ipv6Autoconfig:
vlanid: -1
- macAddress: "{{ server_profile.connections[1].mac }}"
enabled: true
dhcpv4: true
ipv6Autoconfig: false
virtualInterfaces:
###
# Copyright (2016) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file 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.
---
# Variables here are applicable to all host groups
httpd_port: 80

# Network Settings
domain_name: "mesosphere.lab"
dns_server: 192.168.1.1

# HPE Settings
#HARDWARE_ARCHITECTURE: HPE-CCLASS
HARDWARE_ARCHITECTURE: HPE-SYNERGY
#HARDWARE_ARCHITECTURE: HPE-DL
INTERFACE_NAME: ens3f4
#INTERFACE_NAME: eno2

# DCOS Settings
DCOS_GENERATE_CONFIG_PATH: '/root/dcos-cache/dcos_generate_config.sh' # copied with $ curl -O https://downloads.dcos.io/dcos/staible/dcos_generate_config.sh
DCOS_CLUSTER_NAME: 'DCOS-ONEVIEW'
DCOS_BOOTSTRAP_URL: 'http://bootstrap.{{ domain_name }}'
config: "{{ playbook_dir }}/oneview_config.json"
#deployment_plan_name: 'RHEL-7.3_DCOS_pramod'
deployment_plan_name: 'RHEL-7.3-DCOS-BASE-OS'
management_network_name: 'Mgmt A'
server_template_name: 'DCOS Node Template'

# ICsp Settings
icsp: <ICSPIPADDRESS> # ICsp appliance IP Address
icsp_username: <ICSPUSERNAME> # ICsp user name
icsp_password: <ICSPUSERPASSWORD> # ICsp password
osbp_custom_attributes:
- SSH_CERT: "{{ lookup('file', '~/.ssh/root_ansible.pub') }}"

#iLO Credentials
server_username: <ILOUSERNAME> # iLO credentials for the target server that will be registered in ICsp
server_password: <ILOPASSWORD> #iLO password

network_config:
hostname: "{{ inventory_hostname }}"
domain: "{{ domain_name }}"
interfaces:
- macAddress: "{{ server_profile.connections[0].mac }}"
enabled: true
dhcpv4: true
ipv6Autoconfig:
vlanid: -1
- macAddress: "{{ server_profile.connections[1].mac }}"
enabled: true
dhcpv4: true
ipv6Autoconfig: false
virtualInterfaces:
12 changes: 2 additions & 10 deletions hosts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# limitations under the License.
###

# default user and password generated on ICsp provisioning
# If you set the SSH key during the server provisioning, you don't need to
# specify the credentials

# If you wish, you can specify manually the IP addres that ICsp will set
# to the provisioned server ethernet adapter

# There is only one bootstrap node
[dcos-bootstrap]
Expand Down Expand Up @@ -37,7 +28,7 @@ node_type=slave_public
[dcos-private-agents]
agent2
agent3
agent4
#agent4

[dcos-private-agents:vars]
node_type=slave
Expand All @@ -50,3 +41,4 @@ dcos-agents

# Removed nodes
[dcos-evicted-agents]
#agent3
Binary file added media/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions oneview_config.json

This file was deleted.

123 changes: 69 additions & 54 deletions ov_dcos.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,69 @@
###
# Copyright (2017) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file 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.
###

---
# This playbook deploys a complete DC-OS Cluster according to hosts definition

- name: Install all Physical Nodes
hosts: all-nodes
vars:
ov_osbp: "{{ os_build_plan }}"
ov_profile: "{{ ov_template }}"
gather_facts: no
roles:
- hpe-oneview-server

- name: All nodes are DC/OS Nodes
hosts: all-nodes
gather_facts: yes
roles:
- dcos-node

- name: Collect configuration of nodes
hosts: all-nodes
gather_facts: yes
tasks:
- name: Link Certificate Authorities
# required on CentOS because DC/OS compilation is done on Ubuntu
file: src=/etc/ssl/certs/ca-bundle.crt dest=/etc/ssl/certs/ca-certificates.crt state=link
- include: tasks/detect-public-ip.yml

- name: Generate DC/OS Bootstrap
hosts: dcos-bootstrap
gather_facts: no
tasks:
- include: tasks/bootstrap.yml

- name: Install DC/OS Masters and Agents
hosts: dcos-masters,dcos-agents
gather_facts: no
tasks:
- include: tasks/install.yml
###
# Copyright (2017) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file 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.
###

---
# This playbook deploys a complete DC-OS Cluster according to hosts definition

- name: Install all Physical Nodes
hosts: all-nodes
vars:
ov_osbp: "{{ os_build_plan }}"
ov_profile: "{{ ov_template }}"
gather_facts: no
roles:
- hpe-oneview-server

#- name: Add proxy to the nodes
# hosts: all-nodes
# gather_facts: yes
# tasks:
# - name: insert Proxy details for all users
#blockinfile:
# dest: /etc/profile.d/proxy.sh
# create: true
# block: |
# export http_proxy=http://proxy.houston.hpecorp.net:8088
# export https_proxy=http://proxy.houston.hpecorp.net:8088
# - name: delete rogue default route
# command: ip route del default via 192.168.8.1

- name: All nodes are DC/OS Nodes
hosts: all-nodes
gather_facts: yes
roles:
- dcos-node

- name: Collect configuration of nodes
hosts: all-nodes
gather_facts: yes
tasks:
- name: Link Certificate Authorities
# required on CentOS because DC/OS compilation is done on Ubuntu
file: src=/etc/ssl/certs/ca-bundle.crt dest=/etc/ssl/certs/ca-certificates.crt state=link
- include: tasks/detect-public-ip.yml

- name: Generate DC/OS Bootstrap
hosts: dcos-bootstrap
gather_facts: no
tasks:
- include: tasks/bootstrap.yml

- name: Install DC/OS Masters and Agents
hosts: dcos-masters,dcos-agents
gather_facts: no
tasks:
- include: tasks/install.yml

2 changes: 1 addition & 1 deletion ov_dcos_clean_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- name: Delete server profile from HPE OneView
connection: local
oneview_server_profile:
config: "{{ playbook_dir }}/config.json"
config: "{{ playbook_dir }}/oneview_config.json"
state: absent
data:
name: "{{ inventory_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion ov_dcos_decompose_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- name: Delete server profile from HPE OneView
connection: local
oneview_server_profile:
config: "{{ playbook_dir }}/config.json"
config: "{{ playbook_dir }}/oneview_config.json"
state: absent
data:
name: "{{ inventory_hostname }}"
Expand Down
3 changes: 3 additions & 0 deletions roles/dcos-node/tasks/dcos-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
- ipset
- ntp
- ntpdate
- rsync
- net-tools
- bind-utils

# Firewall should be configured if cluster is publicly accessible.
# For local dev/test/demo, just disable it.
Expand Down
Loading

0 comments on commit 8950a7a

Please sign in to comment.