|
Size: 2318
Comment:
|
Size: 2327
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 58: | Line 58: |
| After the puppet script done. You can use vnc client to connect to vnc:5 to test if it is properly running. | After the puppet script done. You can use vnc client to connect to '''vnc:5''' to test if it is properly running. Password is 123456 |
| Line 62: | Line 62: |
| {{{ rsync -avz /u/ccr.15/std/{ut,}bin{l,x11} root@<your new control server IP>:/u/cc/std/ }}} |
'''rsync -avzk /u/ccstandard/ root@<your new control server ip>:/u/ccr.15/''' |
Delpoy Fully Configured Control Server
This page is the manual for how to deploy a full end to end control server (install the binaries, packages, setup company, vnc session and guacamole.)
Prerequisition: Minimal Centos 6.8 is installed.
1. ssh root@<your control new host>
2. run following commands in your host.
rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm yum -y install puppet hostname (remember this client server hostname) vim /etc/puppet/puppet.conf
3. add following into the puppet.conf
in [main]
#puppet server westcoast dns name
server = li823-33.members.linode.com
#your client server dns name
certname = <YOUR CLIENT SERVER HOSTNAME>
environment = production
in [agent], add
onetime = true
:wq to save and exit the puppet.conf
4. ssh root@westcoast.creativecomputing.com.au
5. in the westcoast server run:
docker ps | grep /bin/bash
it will give you following output:
9dd5c4586e0f ffd6477b4b95 "/bin/bash" 5 days ago Up 5 days fervent_carson
6. run: docker attach 9dd5c4586e0f
hit "Enter" twice. Then you are in the docker puppet server container.
7. In the docker puppet server container you run: vim /etc/puppet/environments/production/manifests/client.pp
8. in the client.pp file, change the node name to your control server's hostname. e.g. (node 'li1178-134.members.linode.com'), :wq to save and exit the client.pp file.
9. go back to your control new host server. run "puppet agent --debug --test"
Now the puppet agent will automatically deploy the basic control server (CCDIR, /u/, packages such as VPN, CUPs, Guacamole and VNC:5 ready)
After the puppet script done. You can use vnc client to connect to vnc:5 to test if it is properly running. Password is 123456
10. You need to manually transfer the latest binaries from SAM to your new control server. So you need to ssh login to SAM as root and run:
rsync -avzk /u/ccstandard/ root@<your new control server ip>:/u/ccr.15/
11. You also need to mannually transfer the latest .qss from SAM to your new control server. In SAM:
scp /u/ccr.15/adm/menu.* /u/ccr.15/adm/*.qss root@<your new control server IP>:/u/cc/adm/
