forked from rcbops/opencenter-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-environment.sh
executable file
·37 lines (33 loc) · 1.63 KB
/
make-environment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
# OpenCenter(TM) is Copyright 2013 by Rackspace US, Inc.
##############################################################################
#
# OpenCenter is licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. This
# version of OpenCenter includes Rackspace trademarks and logos, and in
# accordance with Section 6 of the License, the provision of commercial
# support services in conjunction with a version of OpenCenter which includes
# Rackspace trademarks and logos is prohibited. OpenCenter source code and
# details are available at: # https://github.com/rcbops/opencenter or upon
# written request.
#
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0 and a copy, including this
# notice, is available in the LICENSE file accompanying this software.
#
# 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.
#
##############################################################################
# override default endpoint
# OPENCENTER_ENDPOINT=http://localhost:8080
for d in {1..9}; do
r2 node create --hostname="test-host-${d}" --backend="unprovisioned" --backend_state="unknown"
done
for d in {1..3}; do
r2 cluster create --name="test-cluster-${d}"
done
r2 node create --hostname="chef-server" --backend="chef-server" --backend_state="ready"