initial commit

Change-Id: Idb54eab8f8d4611e0cbe5fbd7e8ee90442f738a3
This commit is contained in:
Mohammed Naser 2019-08-07 14:11:02 -04:00
parent 0f8869bd0c
commit 107f0daae8
10 changed files with 183 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.tox

19
defaults/main.yaml Normal file
View File

@ -0,0 +1,19 @@
# Copyright 2019, VEXXHOST, Inc.
#
# 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.
openmanage_packages:
- srvadmin-server-cli
- srvadmin-storage-cli
openmanage_install_monitoring_tools: false

15
meta/main.yaml Normal file
View File

@ -0,0 +1,15 @@
---
galaxy_info:
role_name: openmanage
description: Install & configure OpenManage
license: Apache
author: Mohammed Naser
company: VEXXHOST, Inc.
min_ansible_version: 2.7
platforms:
- name: EL
versions:
- 7

31
tasks/main.yaml Normal file
View File

@ -0,0 +1,31 @@
# Copyright 2019, VEXXHOST, Inc.
#
# 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.
- include_tasks: "setup-repo/{{ ansible_os_family | lower }}.yaml"
- name: Install packages
become: true
package:
name: "{{ openmanage_packages }}"
state: present
- name: Install check_openmanage
become: true
get_url:
url: http://folk.uio.no/trondham/software/check_openmanage-3.7.12/check_openmanage
dest: /usr/local/bin/check_openmanage
checksum: md5:9696bbb3fbc258ffaaa23fff3bd50f97
mode: '0755'
when:
- openmanage_install_monitoring_tools | bool

View File

@ -0,0 +1,41 @@
# Copyright 2019, VEXXHOST, Inc.
#
# 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.
- name: Add dell-system-update_independent
become: true
yum_repository:
name: dell-system-update_independent
description: dell-system-update_independent
file: dell-system-update
baseurl: https://linux.dell.com/repo/hardware/dsu/os_independent/
gpgcheck: true
gpgkey:
- https://linux.dell.com/repo/pgp_pubkeys/0x756ba70b1019ced6.asc
- https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc
- https://linux.dell.com/repo/pgp_pubkeys/0xca77951d23b66a9d.asc
exclude:
- dell-system-update*.i386
- name: Add dell-system-update_dependent
become: true
yum_repository:
name: dell-system-update_dependent
description: dell-system-update_dependent
file: dell-system-update
mirrorlist: https://linux.dell.com/repo/hardware/dsu/mirrors.cgi?osname=el$releasever&basearch=$basearch&native=1
gpgcheck: true
gpgkey:
- https://linux.dell.com/repo/pgp_pubkeys/0x756ba70b1019ced6.asc
- https://linux.dell.com/repo/pgp_pubkeys/0x1285491434D8786F.asc
- https://linux.dell.com/repo/pgp_pubkeys/0xca77951d23b66a9d.asc

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
ansible-lint==4.1.0

19
tests/run.yaml Normal file
View File

@ -0,0 +1,19 @@
# Copyright 2019, VEXXHOST, Inc.
#
# 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.
- hosts: all
roles:
- openmanage
vars:
openmanage_install_monitoring_tools: true

9
tox.ini Normal file
View File

@ -0,0 +1,9 @@
[tox]
minversion = 2.0
skipsdist = True
[testenv:linters]
deps =
-r{toxinidir}/test-requirements.txt
commands =
ansible-lint .

24
zuul.d/jobs.yaml Normal file
View File

@ -0,0 +1,24 @@
# Copyright 2019, VEXXHOST, Inc.
#
# 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.
- job:
name: ansible-role-openmanage-integration
parent: base
abstract: true
run: tests/run.yaml
- job:
name: ansible-role-openmanage-integration-centos-7
parent: ansible-role-openmanage-integration
nodeset: centos-7

23
zuul.d/project.yaml Normal file
View File

@ -0,0 +1,23 @@
# Copyright 2019, VEXXHOST, Inc.
#
# 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.
- project:
check:
jobs:
- tox-linters
- ansible-role-openmanage-integration-centos-7
gate:
jobs:
- tox-linters
- ansible-role-openmanage-integration-centos-7