Skip to content

Commit

Permalink
Update to localdev scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Jo De Boeck <[email protected]>
  • Loading branch information
grimpy committed Jul 4, 2018
1 parent 16532d3 commit c2f50bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/dev/localnode/_functions
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ createcontainer() {
cmd apt-get install -y vim net-tools iproute2 openssh-server iputils-ping curl sudo
enableservice ssh
cmd mkdir /root/.ssh
docker cp $(readlink $HOME/.ssh/$SSHKEY) $name:/root/.ssh/authorized_keys
docker cp "$(readlink -f $HOME/.ssh/$SSHKEY)" $name:/root/.ssh/authorized_keys
cmd chmod 600 /root/.ssh/authorized_keys
cmd chown 0:0 /root/.ssh/authorized_keys
addsshhosts
Expand Down
12 changes: 12 additions & 0 deletions scripts/dev/localnode/masterinstall
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,22 @@ Restart=on-failure
Type=simple
" > /etc/systemd/system/multi-user.target.wants/ovcstartup.service

debconf-set-selections <<< "postfix postfix/mailname string ovc.local"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
apt-get install -y postfix
systemctl enable postfix
systemctl start postfix

installjs
ays install -n python_portal
ays install -n cb_master_aio --hrdseed /opt/code/github/0-complexity/openvcloud/scripts/dev/localnode/cfg/masterconfig.hrd
echo "
pcl = j.clients.portal.getByInstance('main')
pcl.actors.cloudbroker.iaas.addExternalNetwork(name='docknet', subnet='172.17.0.0/16', gateway='172.17.0.1', startip='172.17.1.100', endip='172.17.1.120', gid=66, vlan=0)
lcl = j.clients.osis.getNamespace('libvirt')
if not lcl.vnc.list():
vnc = lcl.vnc.new()
vnc.gid = 66
vnc.url = 'http://172.17.1.10:8091/vnc_auto.html?token='
lcl.vnc.set(vnc)
" | js
2 changes: 1 addition & 1 deletion scripts/dev/localnode/nodeinstall
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ systemctl start virtlogd
echo "
<network>
<name>gw_mgmt</name>
<forward mode="bridge"/>
<forward mode='bridge'/>
<bridge name='gw_mgmt'/>
<virtualport type='openvswitch'/>
</network>
Expand Down

0 comments on commit c2f50bd

Please sign in to comment.