falkorlib 0.7.14 → 0.7.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f96b7e36009e31c6d9eed26df3617c53101bdcf
4
- data.tar.gz: 3d8dc321a00e3592917e33650345c3aadab3fa6f
3
+ metadata.gz: a0f6ff47aab0020111d7405279aa40b72decc9f3
4
+ data.tar.gz: 3fde15f7cc813365b0cfabe7aa94e7d01741036c
5
5
  SHA512:
6
- metadata.gz: 0203e66c8c90616d7e253f38f7e56e9f1c46638afdfb4f4224a5eb9e96d09024bdbbe42defbe13d00d276b7ec1079529d70bf7ebd34c5003d8ceffafee036459
7
- data.tar.gz: 114dcd3403f15da7b3fc37c63e4597bc254c21e5a8d66fffffafc3028f33be80f3f54a09c70b8470c3d910c70b784b1c52749e884dbf8be0cbb5e1ef80cca9de
6
+ metadata.gz: d322a5ea7a88c93e42cbd2a08099d88353ec9d4e66ff2937a163b54bd94403104e9e477634990977b19769c999de117b7e1d4fae234aaf9a1531fa839da81f93
7
+ data.tar.gz: e9200caafecbeb305dc5eafdc045ffc957d8d28db4f0fa98af41e219a4d8a1dae0b5f1364b7d82e317e817cd0152c33e534d7ce2016d2c911c99fdf402b00706
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- falkorlib (0.7.14)
4
+ falkorlib (0.7.15)
5
5
  activesupport (~> 4.0)
6
6
  artii (>= 2.1)
7
7
  awesome_print (~> 1.2)
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  ################################################################################
3
- # Time-stamp: <Fri 2018-04-27 13:51 svarrette>
3
+ # Time-stamp: <Fri 2018-04-27 16:58 svarrette>
4
4
  ################################################################################
5
5
  # Interface for the main Bootstrapping operations
6
6
  #
@@ -118,7 +118,7 @@ module FalkorLib #:nodoc:
118
118
  :vagrant => {
119
119
  :os => :centos7,
120
120
  :ram => 1024,
121
- :vcpus => 4,
121
+ :vcpus => 2,
122
122
  :domain => 'vagrant.dev',
123
123
  :range => '10.10.1.0/24',
124
124
  :boxes => {
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  ################################################################################
3
- # Time-stamp: <Fri 2018-04-27 16:34 svarrette>
3
+ # Time-stamp: <Fri 2018-04-27 16:56 svarrette>
4
4
  ################################################################################
5
5
  # Interface for Bootstrapping MkDocs
6
6
  #
@@ -47,13 +47,18 @@ module FalkorLib
47
47
  init_from_template(templatedir, rootdir, config,
48
48
  :no_interaction => true,
49
49
  :no_commit => true)
50
+ [ 'bootstrap.sh', 'config.yaml.sample' ].each do |f|
51
+ FalkorLib::Git.add(File.join(rootdir, 'vagrant', "#{f}")) if use_git
52
+ end
50
53
  Dir.chdir( rootdir ) do
51
54
  run %(git ignore '.vagrant/' )
52
55
  # run %(ln -s README.md index.md )
53
56
  # run %(ln -s README.md contributing/index.md )
54
57
  # run %(ln -s README.md setup/index.md )
55
58
  end
56
- exit_status.to_i
59
+ FalkorLib::Git.add(File.join(rootdir, '.gitignore')) if use_git
60
+
61
+ #exit_status.to_i
57
62
  end # vagrant
58
63
 
59
64
  end # module Bootstrap
@@ -19,7 +19,7 @@ module FalkorLib #:nodoc:
19
19
  # MAJOR: Defines the major version
20
20
  # MINOR: Defines the minor version
21
21
  # PATCH: Defines the patch version
22
- MAJOR, MINOR, PATCH = 0, 7, 14
22
+ MAJOR, MINOR, PATCH = 0, 7, 15
23
23
 
24
24
  module_function
25
25
 
@@ -1,6 +1,6 @@
1
1
  # -*- mode: ruby -*-
2
2
  # vi: set ft=ruby :
3
- # Time-stamp: <Fri 2018-04-27 16:31 svarrette>
3
+ # Time-stamp: <Fri 2018-04-27 16:53 svarrette>
4
4
  ###########################################################################################
5
5
  # __ __ _ __ _ _
6
6
  # \ \ / /_ _ __ _ _ __ __ _ _ __ | |_ / _(_) | ___
@@ -51,13 +51,13 @@ DEFAULT_SETTINGS = {
51
51
  :ram => <%= config[:ram] %>,
52
52
  :vcpus => <%= config[:vcpus] %>,
53
53
  :vbguest_auto_update => true,
54
+ :role => 'default',
54
55
  # :nodes => 1,
55
56
  },
56
57
  # Default domain settings
57
58
  :network => {
58
59
  :domain => '<%= config[:domain] %>',
59
60
  :range => '<%= config[:range] %>',
60
- :client_ip_start_offset => 100,
61
61
  },
62
62
  # Default Boxes
63
63
  :boxes => {
@@ -72,7 +72,7 @@ DEFAULT_SETTINGS = {
72
72
  # :os: <os> # from the configured boxes
73
73
  # :ram: <ram>
74
74
  # :vcpus: <vcpus>
75
- # :role: <role> # supported: [ 'controller', 'frontend' ]
75
+ # :role: <role> # supported: [ 'XX', 'YY' ]
76
76
  :vms => {
77
77
  # IF in single mode, below is the definition of the box to deploy
78
78
  'default' => {
@@ -150,6 +150,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
150
150
  os = node[:os] ? node[:os].to_sym : defaults[:os].to_sym
151
151
  ram = node[:ram] ? node[:ram] : defaults[:ram]
152
152
  vcpus = node[:vcpus] ? node[:vcpus] : defaults[:vcpus]
153
+ role = node[:role] ? node[:role] : 'default'
153
154
  desc = node[:desc] ? node[:desc] : 'n/a'
154
155
 
155
156
  abort "Non-existing box OS '#{os}' for the VM '#{name}'" if settings[:boxes][os.to_sym].nil?
@@ -168,6 +169,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
168
169
  v.customize [ 'modifyvm', :id, '--cpus', vcpus.to_s ] if vcpus.to_i > 1
169
170
  #v.customize [ 'setextradata', :id, 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root', '1']
170
171
  end
172
+
173
+ # role specialization
174
+ if role == 'XX'
175
+ c.vm.provision "shell" do |s|
176
+ s.path = "scripts/XX_install.sh"
177
+ s.args = [ '--debug' ]
178
+ s.keep_color = true
179
+ end
180
+ end
171
181
  end
172
182
  __table[:rows] << [ name, fqdn, os.to_sym, "#{vcpus}/#{ram}", desc, ip]
173
183
  end # settings
@@ -1,5 +1,5 @@
1
1
  # -*- mode: yaml; -*-
2
- # Time-stamp: <Mon 2018-01-22 08:20 svarrette>
2
+ # Time-stamp: <Fri 2018-04-27 16:47 svarrette>
3
3
  ################################################################################
4
4
  # Complementary configuration for Vagrant
5
5
  # You can overwrite here the default settings defined in ../Vagrantfile and
@@ -11,9 +11,9 @@
11
11
  # Format:
12
12
  # :<os><version>: <username>/<box> # see https://vagrantcloud.com
13
13
  # :boxes:
14
- # :centos7: centos/7
15
- # :debian8: debian/contrib-jessie64
16
- # :ubuntu14: ubuntu/trusty64
14
+ # :centos7: 'centos/7'
15
+ # :debian8: 'debian/contrib-jessie64'
16
+ # :ubuntu14: 'ubuntu/trusty64'
17
17
 
18
18
  #_________________
19
19
  # Default settings
@@ -22,12 +22,6 @@
22
22
  # :ram: 512 # Default RAM
23
23
  # :vcpus: 1 # Default number of virtual CPUs
24
24
  # :vbguest_auto_update: 1 # check/update box guest additions
25
- # :nodes: 1 # Default number of compute nodes
26
- # also recomputed from partition config in cluster mode
27
- # :mode: single # Type of deployment. Eligible values:
28
- # 'single' image or
29
- # 'distributed' or
30
- # 'cluster' (not yet implemented)
31
25
 
32
26
  #____________________
33
27
  # Network settings
@@ -49,101 +43,9 @@
49
43
  # :role: <role> # supported: [ 'controller', 'frontend' ]
50
44
  #
51
45
  # :vms:
52
- # 'slurm-backup':
53
- # :hostname: slurm2
46
+ # 'anothervm':
47
+ # :hostname: vm2
54
48
  # :ram: 2048
55
49
  # :vcpus: 2
56
- # :desc: 'Slurm Controller #2 (backup)'
57
- # :role: controller
58
-
59
- #_______________________________________________________________________
60
- # Default setting for the simulated compute nodes of the virtual cluster
61
- # :nodes:
62
- # :cpus: 4
63
- # :sockets: 2
64
- # :ram: 512
65
- # :realmemory: 400 # has to be reported to Slurm
66
- # :cores_per_socket: 2
67
- # :thread_per_core: 1
68
- # :state: UNKNOWN
69
-
70
- #_______________________________________________________________________
71
- # The real part: Details of the Slurm Configuration
72
- # used later to feed slurm.conf from the ERB template
73
- # :slurm:
74
- # :template: slurm.conf.erb
75
- # :clustername: thor
76
- # :allowgroups: clusterusers
77
- # # Default Partition / QoS. Format:
78
- # # '<name>':
79
- # # :nodes: n # Number of nodes
80
- # # :default: true|false # Default partition?
81
- # # :hidden: true|false # Hidden partition?
82
- # # :allowgroups: 'ALL|group[,group]*'
83
- # # :allowaccounts: 'ALL|acct[,acct]*'
84
- # # :allowqos:'ALL|qos[,qos]*'
85
- # # :state: 'UP|DOWN|DRAIN|INACTIVE'
86
- # # :oversubscribe: 'EXCLUSIVE|FORCE|YES|NO' (replace :shared)
87
- # # #=== Time Format: minutes, minutes:seconds, hours:minutes:seconds, days-hours,
88
- # # days-hours:minutes, days-hours:minutes:seconds or "UNLIMITED"
89
- # # :default_time: 'UNLIMITED|DD-HH:MM:SS',
90
- # # :max_time: 'UNLIMITED|DD-HH:MM:SS'
91
- # # #=== associated QoS config, named 'qos-<partition>' ===
92
- # # :priority: n # QoS priority (default: 0)
93
- # # :preempt: 'qos-<name>
94
- # #
95
- # :partitions:
96
- # interactive:
97
- # :nodes: 1
98
- # :priority: 0
99
- # :default_time: 0-10:00:00
100
- # :max_time: 5-00:00:00
101
- # batch:
102
- # :nodes: 2
103
- # :priority: 100
104
- # :default: true
105
- # :preempt: qos-interactive
106
- # :default_time: 0-2:00:00
107
- # :max_time: 5-00:00:00
108
- # ### General options you may wish to customize
109
- # :mpidefault: none
110
- # :mpiparams: ''
111
- # :topology: ''
112
- # :mempercpu: 0
113
- # :maxmempercpu: 0
114
- # :slurmctlddebug: 3
115
- # :slurmddebug: 3
116
- # :slurmctldport: 6817
117
- # :slurmdport: 6818
118
- # :srunportrange: 50000-53000
119
- # :jobsubmitplugins: '' #'lua'
120
- # # job completion logging mechanism type. You can use 'jobcomp/mysql'
121
- # :jobcomptype: jobcomp/none
122
- # :jobcomploc: ''
123
- # # Health checker -- Ex: NHC / see https://github.com/mej/nhc
124
- # :healthcheckprogram: ''
125
- # :healthcheckinterval: 30
126
- # # What level of association-based enforcement to impose on job submissions
127
- # :acct_storageenforce: qos,limits,associations
128
- # # type of scheduler to be use
129
- # :schedulertype: sched/backfill
130
- # # Plugin used to identify which jobs can be preempted in order to start a pending job
131
- # :preempttype: preempt/qos
132
- # :preemptmode: requeue
133
- # # Plugin to be used in establishing a job's scheduling priority
134
- # :prioritytype: priority/multifactor
135
- # :prioritydecayHL: 5-0
136
- # :priorityweightage: 0
137
- # :priorityweightfairshare: 0
138
- # :priorityweightjobsize: 0
139
- # :priorityweightpartition: 0
140
- # :priorityweightqos: 0
141
- # # type of resource selection algorithm to be used
142
- # :selecttype: select/cons_res
143
- # :selecttype_params: CR_Core_Memory,CR_CORE_DEFAULT_DIST_BLOCK
144
- # # type of task launch plugin, typically used to provide resource management within a node
145
- # :taskplugin: task/cgroup
146
- # :taskplugin_params: cpusets
147
- # # hooks
148
- # :taskprolog: '' # program to be execute prior to initiation of each task
149
- # :taskepilog: '' # program to be execute after termination of each task
50
+ # :desc: 'VM #2 (secondary)'
51
+ # :role: role2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falkorlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.14
4
+ version: 0.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Varrette