Revision f507ab25
b/snf-deploy/snfdeploy/components.py | ||
---|---|---|
457 | 457 |
def check(self): |
458 | 458 |
return ["ping -c1 %s" % self.env.env.mq.ip] |
459 | 459 |
|
460 |
def prepare(self): |
|
461 |
return [ |
|
462 |
"sed -i 's/false/true/' /etc/default/snf-ganeti-eventd", |
|
463 |
] |
|
464 |
|
|
460 | 465 |
def configure(self): |
461 | 466 |
tmpl = "/etc/synnefo/gtools.conf" |
462 | 467 |
replace = { |
... | ... | |
466 | 471 |
} |
467 | 472 |
return [(tmpl, replace, {})] |
468 | 473 |
|
469 |
def initialize(self): |
|
470 |
return [ |
|
471 |
"sed -i 's/false/true/' /etc/default/snf-ganeti-eventd", |
|
472 |
"/etc/init.d/snf-ganeti-eventd start", |
|
473 |
] |
|
474 |
|
|
475 | 474 |
def restart(self): |
476 | 475 |
return ["/etc/init.d/snf-ganeti-eventd restart"] |
477 | 476 |
|
Also available in: Unified diff