-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Didier-Lalli/master
Updated integration pack to support Synergy and Image Streamer
- Loading branch information
Showing
52 changed files
with
1,232 additions
and
563 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.