Differences between revisions 5 and 6
Revision 5 as of 2017-11-07 06:59:05
Size: 2331
Editor: thog
Comment:
Revision 6 as of 2017-11-07 07:12:04
Size: 2657
Editor: thog
Comment:
Deletions are marked like this. Additions are marked like this.
Line 69: Line 69:
12. You now can VNC:5 to your control server and logout and log back in. You can use condisp -c -b to see you are in "standard" company and "ware" location.

13. In your vnc:5, open a terminal, and "ls", then you could see 3 scripts.

14. run "./createcomp.sh aaa" to create an "aaa" company from the standard company.

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/ccr.15/adm/

12. You now can VNC:5 to your control server and logout and log back in. You can use condisp -c -b to see you are in "standard" company and "ware" location.

13. In your vnc:5, open a terminal, and "ls", then you could see 3 scripts.

14. run "./createcomp.sh aaa" to create an "aaa" company from the standard company.

DelpoyFullyConfiguredControlServer (last edited 2017-11-07 22:57:58 by thog)