forked from cinquo/cloud-init-cern
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.md.bak
More file actions
71 lines (45 loc) · 2.39 KB
/
README.md.bak
File metadata and controls
71 lines (45 loc) · 2.39 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cloud-init-cern
===============
Additional Cloud-init modules developed in order to contextualize services to executed LHC experiments jobs.
More information can be found here:
https://twiki.cern.ch/twiki/bin/view/LCG/CloudInit
*****
In this directory you can find the CloudInit modules for the installation and configuration of Ganglia, CVMFS and Condor.
These are Cloud Config modules, which means after they are correctly installed in your operating system you will be able to easily configure those three services through user-data.
You are free to download them, test them and modify them accordingly to your needs.
Here is a brief summary on what you need to do to use these modules:
1. Download the three modules to an instance where you already have the CloudInit package installed, and move them to the Python modules directory (where all of the other Cloud Config modules are): /usr/lib/python2.6/site-packages/cloudinit/CloudConfig/
2. Edit the file /etc/cloud/cloud.cfg and add these three lines to the 'cloud_config_modules' section:
- condor
- ganglia
- cvmfs
1. Alternatively, you can skip steps **1** and **2** by downloading and install the RPM available in https://cern-cloudinit-modules.web.cern.ch/cern-cloudinit-modules/
3. EXTRA STEP: if you are planning to do extensive testing and/or use these modules as default I would suggest you to either snapshot the current instance or bake your own Cloud Image from scratch with these modules included.
4. Create your user-data file using the Cloud Config structure and refer to the services you want to install and configure.
You can configure several parameters for each one of the services. Here are two minimal examples of user-data files that you could use during instantiation:
*To create a simple node*
#cloud-config
cvmfs:
local:
repositories: grid.cern.ch
http-proxy: DIRECT
ganglia:
nodes:
udpSendChannel:
host: yourheadnode.com
condor:
workernode:
condor-host: yourcondormaster.com
daemon-list: MASTER, STARTD
*To create a master headnode*
#cloud-config
condor:
master:
lowport: 21000
highport: 24500
ganglia:
headnode:
source: '"my cluster"'
Always remember to write "#cloud-config" in the first line of your user-data file, and to respect white-spacing.
*More features are enabled. Please look at the Twiki page above*
Cristóvão Cordeiro, 26/04/2013, cristovao.cordeiro@cern.ch