File tree Expand file tree Collapse file tree
tools/devcloud/devcloudbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Vagrant::Config.run do |config|
2727
2828 # Uncomment this line to enable the console for debugging the
2929 # build process.
30- config . vm . boot_mode = :gui
30+ # config.vm.boot_mode = :gui
3131
3232 # Setup port forwarding
3333 config . vm . forward_port 22 , 2222
@@ -40,12 +40,12 @@ Vagrant::Config.run do |config|
4040 # Ensure the VM has the right virtual resources
4141 #config.vm.
4242
43- # config.vm.provision :puppet do |puppet|
44- # puppet.manifests_path = "puppet-devcloud"
45- # puppet.manifest_file = "init.pp"
46- # puppet.with_ssh = true
47- # puppet.pp_path = "/etc/puppet"
48- # puppet.module_path = "puppet-devcloud"
49- # end
43+ config . vm . provision :puppet do |puppet |
44+ puppet . manifests_path = "puppet-devcloud"
45+ puppet . manifest_file = "init.pp"
46+ puppet . with_ssh = true
47+ puppet . pp_path = "/etc/puppet"
48+ puppet . module_path = "puppet-devcloud"
49+ end
5050
5151end
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Licensed to the Apache Software Foundation (ASF) under one
4+ # or more contributor license agreements. See the NOTICE file
5+ # distributed with this work for additional information
6+ # regarding copyright ownership. The ASF licenses this file
7+ # to you under the Apache License, Version 2.0 (the
8+ # "License"); you may not use this file except in compliance
9+ # with the License. You may obtain a copy of the License at
10+ #
11+ # http://www.apache.org/licenses/LICENSE-2.0
12+ #
13+ # Unless required by applicable law or agreed to in writing,
14+ # software distributed under the License is distributed on an
15+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+ # KIND, either express or implied. See the License for the
17+ # specific language governing permissions and limitations
18+ # under the License.
19+ mac=` /sbin/ifconfig xenbr0 | /bin/grep HWaddr | /usr/bin/awk ' {print $5}' `
20+ /sbin/ebtables -I FORWARD -d ! $mac -i eth0 -p IPV4 --ip-prot udp --ip-dport 67:68 -j DROP
21+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Licensed to the Apache Software Foundation (ASF) under one
4+ # or more contributor license agreements. See the NOTICE file
5+ # distributed with this work for additional information
6+ # regarding copyright ownership. The ASF licenses this file
7+ # to you under the Apache License, Version 2.0 (the
8+ # "License"); you may not use this file except in compliance
9+ # with the License. You may obtain a copy of the License at
10+ #
11+ # http://www.apache.org/licenses/LICENSE-2.0
12+ #
13+ # Unless required by applicable law or agreed to in writing,
14+ # software distributed under the License is distributed on an
15+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+ # KIND, either express or implied. See the License for the
17+ # specific language governing permissions and limitations
18+ # under the License.
19+ /usr/bin/xe sr-list | /bin/grep local-storage
20+ rc=$?
21+ if [[ $rc != 0 ]] ; then
22+ hostuuid=` xe host-list | grep uuid| awk ' {print $5}' ` ;
23+ xe sr-create host-uuid=$hostuuid name-label=local-storage shared=false type=file device-config:location=/opt/storage/primary
24+ fi
25+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Licensed to the Apache Software Foundation (ASF) under one
4+ # or more contributor license agreements. See the NOTICE file
5+ # distributed with this work for additional information
6+ # regarding copyright ownership. The ASF licenses this file
7+ # to you under the Apache License, Version 2.0 (the
8+ # "License"); you may not use this file except in compliance
9+ # with the License. You may obtain a copy of the License at
10+ #
11+ # http://www.apache.org/licenses/LICENSE-2.0
12+ #
13+ # Unless required by applicable law or agreed to in writing,
14+ # software distributed under the License is distributed on an
15+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+ # KIND, either express or implied. See the License for the
17+ # specific language governing permissions and limitations
18+ # under the License.
19+
20+ grep 0.0.0.0 /usr/lib/xcp/lib/vncterm-wrapper
21+ rc=$?
22+ if [[ $rc != 0 ]] ; then
23+ sed -i ' s/VNCTERM_LISTEN=.\+/VNCTERM_LISTEN="-v 0.0.0.0:1"/' /usr/lib/xcp/lib/vncterm-wrapper
24+ fi
25+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Licensed to the Apache Software Foundation (ASF) under one
4+ # or more contributor license agreements. See the NOTICE file
5+ # distributed with this work for additional information
6+ # regarding copyright ownership. The ASF licenses this file
7+ # to you under the Apache License, Version 2.0 (the
8+ # "License"); you may not use this file except in compliance
9+ # with the License. You may obtain a copy of the License at
10+ #
11+ # http://www.apache.org/licenses/LICENSE-2.0
12+ #
13+ # Unless required by applicable law or agreed to in writing,
14+ # software distributed under the License is distributed on an
15+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+ # KIND, either express or implied. See the License for the
17+ # specific language governing permissions and limitations
18+ # under the License.
19+
20+ cd /opt/cloudstack
21+ git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
22+ rc=$?
23+ if [[ $rc != 0 ]] ; then
24+ cd /opt/cloudstack/incubator-cloudstack
25+ git pull origin master
26+ fi
27+ exit 0
You can’t perform that action at this time.
0 commit comments