Merge "Use openstackclient from container"
This commit is contained in:
commit
e79be1e00a
1
playbooks/roles/install-osc-container/README.rst
Normal file
1
playbooks/roles/install-osc-container/README.rst
Normal file
@ -0,0 +1 @@
|
||||
An ansible role to install openstackclient container and helper script
|
20
playbooks/roles/install-osc-container/files/openstack
Normal file
20
playbooks/roles/install-osc-container/files/openstack
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2020 Red Hat, 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.
|
||||
|
||||
exec docker run -it --rm \
|
||||
-v/etc/openstack:/etc/openstack \
|
||||
docker.io/osclient/python-openstackclient \
|
||||
openstack $@
|
8
playbooks/roles/install-osc-container/tasks/main.yaml
Normal file
8
playbooks/roles/install-osc-container/tasks/main.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
- name: Add helper script
|
||||
become: yes
|
||||
copy:
|
||||
dest: /usr/local/bin/openstack
|
||||
group: root
|
||||
mode: 0755
|
||||
owner: root
|
||||
src: openstack
|
@ -3,6 +3,8 @@
|
||||
roles:
|
||||
- cloud-launcher-cron
|
||||
- edit-secrets-script
|
||||
- install-docker
|
||||
- install-osc-container
|
||||
- install-kubectl
|
||||
- configure-kubectl
|
||||
tasks:
|
||||
|
Loading…
Reference in New Issue
Block a user