Add a bare precise node to nodepool
A basic requirement for having fully-dynamic slave nodes (no static slaves). Change-Id: I1d7edaed5fd96091b3e4cbcec92d084ad93f4929
This commit is contained in:
parent
c883ee2862
commit
6cfb86c227
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash -xe
|
||||||
|
|
||||||
|
# Copyright (C) 2011-2013 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
HOSTNAME=$1
|
||||||
|
|
||||||
|
./prepare_node.sh $HOSTNAME
|
||||||
|
sudo puppet apply --modulepath=/root/config/modules:/etc/puppet/modules -e "class {'openstack_project::bare_slave': }"
|
@ -48,6 +48,12 @@ providers:
|
|||||||
setup: prepare_node_devstack.sh
|
setup: prepare_node_devstack.sh
|
||||||
username: jenkins
|
username: jenkins
|
||||||
private-key: /home/nodepool/.ssh/id_rsa
|
private-key: /home/nodepool/.ssh/id_rsa
|
||||||
|
- name: bare-precise
|
||||||
|
base-image: 'Ubuntu 12.04 LTS (Precise Pangolin)'
|
||||||
|
min-ram: 8192
|
||||||
|
setup: prepare_node_bare.sh
|
||||||
|
username: jenkins
|
||||||
|
private-key: /home/nodepool/.ssh/id_rsa
|
||||||
- name: rax-iad
|
- name: rax-iad
|
||||||
region-name: 'IAD'
|
region-name: 'IAD'
|
||||||
service-type: 'compute'
|
service-type: 'compute'
|
||||||
@ -141,6 +147,10 @@ targets:
|
|||||||
apikey: '<%= jenkins_api_key %>'
|
apikey: '<%= jenkins_api_key %>'
|
||||||
credentials-id: '<%= jenkins_credentials_id %>'
|
credentials-id: '<%= jenkins_credentials_id %>'
|
||||||
images:
|
images:
|
||||||
|
- name: bare-precise
|
||||||
|
min-ready: 2
|
||||||
|
providers:
|
||||||
|
- name: rax-ord
|
||||||
- name: devstack-precise
|
- name: devstack-precise
|
||||||
min-ready: 20
|
min-ready: 20
|
||||||
providers:
|
providers:
|
||||||
|
Loading…
Reference in New Issue
Block a user