Update ranger-agent to include latest helm chart toolkit changes
Changes needed in ranger-agent to be able to use OpenStack Helm - ranger-agent config - ssh place holder file - Revised readme instructions for ssh key. Change-Id: Id6bf665f5685564427f5faf928a1627ca09f3071 Closes-bug: #414271
This commit is contained in:
parent
6ca9117549
commit
915af21974
16
README.rst
16
README.rst
@ -30,15 +30,20 @@ Docker Container:
|
||||
|
||||
1. $ `cd ranger-agent`
|
||||
|
||||
2. $ `sudo docker build -t ranger-agent .`
|
||||
2. Update /ranger-agent/tools/.ssh/ranger_agent with your ssh key to your git repo
|
||||
containing heat templates.
|
||||
You can clone https://github.com/ranger-agent , but pull requests won't be accepted.
|
||||
|
||||
3. $ `sudo docker run -h "ranger-agent" --net host -it --privileged ranger-agent bash`
|
||||
Creating docker image and publish will be done by CICD jobs.For Refernce and validation manually image could push using..
|
||||
3. $ `sudo docker build -t ranger-agent .`
|
||||
|
||||
4. $ `sudo docker run -h "ranger-agent" --net host -it --privileged ranger-agent bash`
|
||||
Creating docker image and publish will be done by deployment jobs.
|
||||
For Refernce and validation manually image could push using.
|
||||
a). $ `docker login <docker_user_id>`
|
||||
b). $ `docker tag ranger-agent <docker_user_id>/ranger-agent:0.1.0`
|
||||
c). $ `docker push <docker_user_id>/ranger-agent:0.1.0`
|
||||
|
||||
4. This docker container will be used by helm chart to deploy
|
||||
5. This docker container will be used by helm chart to deploy ranger-agent.
|
||||
|
||||
Manual:
|
||||
------
|
||||
@ -59,5 +64,6 @@ Manual:
|
||||
5. `sudo nohup ord-dbsync > /dev/null 2>&1 &`
|
||||
6. `sudo nohup ord-engine > /dev/null 2>&1 &`
|
||||
|
||||
6. If you want to reinstall and run ranger-agent again, make sure you run `./clear_install_files.sh` to remove previous installation files.
|
||||
6. If you want to reinstall and run ranger-agent again, make sure you run
|
||||
`./clear_install_files.sh` to remove previous installation files.
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
[DEFAULT]
|
||||
api_workers = 1
|
||||
debug = True
|
||||
verbose = True
|
||||
pecan_debug = True
|
||||
region = local
|
||||
repo_connection_timeout = 120
|
||||
#resource_creation_timeout_min will used by other resources
|
||||
resource_creation_timeout_min = 1200
|
||||
#resource_creation_timeout_max will used by image
|
||||
resource_creation_timeout_max = 14400
|
||||
#Log files location
|
||||
log_dir = /var/log/ranger-agent
|
||||
local_repo = ranger_repo
|
||||
resource_status_check_wait = 15
|
||||
api_paste_config = /etc/ranger-agent/api-paste.ini
|
||||
transport_url = rabbit://stackrabbit:devstack@127.0.0.1:5672/
|
||||
enable_rds_callback_check = True
|
||||
|
||||
[api]
|
||||
# Address to bind the API server to
|
||||
host = 0.0.0.0
|
||||
# Port the bind the API server to
|
||||
port = 9010
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_type = password
|
||||
auth_url = http://keystone-api.openstack.svc.cluster.local:80/v3
|
||||
auth_version = v3
|
||||
password = password
|
||||
project_domain_name = Default
|
||||
project_name = service
|
||||
region_name = RegionOne
|
||||
user_domain_name = Default
|
||||
username = admin
|
||||
|
||||
[database]
|
||||
connection = mysql+pymysql://root:devstack@127.0.0.1:3306/ord
|
||||
max_retries = -1
|
||||
|
||||
[orm]
|
||||
#This will assume the required ssh-keys are all already populated
|
||||
orm_template_repo_url = git@github.com:ranger-agent/templates.git
|
||||
#This is fake service call will be replaced with rds url
|
||||
rds_listener_endpoint = http://127.0.0.1:8777/v1/rds/status
|
||||
repo_pull_check_wait = 2
|
||||
retry_limits = 5
|
43
etc/ranger-agent.sample
Executable file
43
etc/ranger-agent.sample
Executable file
@ -0,0 +1,43 @@
|
||||
[DEFAULT]
|
||||
api_paste_config = /etc/ranger-agent/api-paste.ini
|
||||
api_workers = 1
|
||||
debug = false
|
||||
enable_rds_callback_check = false
|
||||
local_repo = ranger_repo
|
||||
log_dir = /var/log/ranger-agent
|
||||
ord_server_url = http://ranger-agent.openstack.svc.cluster.local:80
|
||||
pecan_debug = true
|
||||
region = RegionOne
|
||||
repo_connection_timeout = 120
|
||||
resource_creation_timeout_max = 14400
|
||||
resource_creation_timeout_min = 1200
|
||||
resource_status_check_wait = 15
|
||||
transport_url = rabbit://ranger-agent:password@rabbitmq.openstack.svc.cluster.local:5672/ranger-agent
|
||||
verbose = true
|
||||
|
||||
[api]
|
||||
host = 0.0.0.0
|
||||
port = 9010
|
||||
|
||||
[database]
|
||||
connection = mysql+pymysql://ranger-agent:password@mariadb.openstack.svc.cluster.local:3306/ord
|
||||
max_retries = -1
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_type = password
|
||||
auth_url = http://keystone-api.openstack.svc.cluster.local:80/v3
|
||||
auth_version = v3
|
||||
password = password
|
||||
project_domain_name = default
|
||||
project_name = service
|
||||
user_domain_name = default
|
||||
username = heat
|
||||
|
||||
[orm]
|
||||
orm_template_repo_url = git@github.com:ranger-agent/templates.git
|
||||
rds_listener_endpoint = http://internal.ranger.com:8777/v1/rds/status
|
||||
repo_pull_check_wait = 2
|
||||
retry_limits = 5
|
||||
|
||||
[oslo_messaging_notifications]
|
||||
driver = messagingv2
|
5
tools/.ssh/ranger_agent
Normal file
5
tools/.ssh/ranger_agent
Normal file
@ -0,0 +1,5 @@
|
||||
This is a place holder file.
|
||||
|
||||
Your ssh application ssh key to your git repo will go here.
|
||||
|
||||
See README.rst for more details.
|
Loading…
x
Reference in New Issue
Block a user