do salt-call
This commit is contained in:
parent
8d017e93c7
commit
2d2c320454
@ -52,6 +52,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
||||
createMakePacDirectoryStructure(unixUser),
|
||||
createIfUp(pac),
|
||||
createHttpdVirtualProc(hive),
|
||||
createSaltCallProc(),
|
||||
createAccountingRulesProc()));
|
||||
final Config config = Config.getInstance();
|
||||
for (String queueName : config.getProperty("queues.dns").split(",")) {
|
||||
@ -75,6 +76,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
||||
createNetworkInterfacesProc(hive),
|
||||
createProftpdConfProc(hive),
|
||||
createHttpdVirtualProc(hive),
|
||||
createSaltCallProc(),
|
||||
createSetQuotaProc(pac)
|
||||
));
|
||||
final Config config = Config.getInstance();
|
||||
@ -153,6 +155,10 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
||||
return new ShellProcessor("mk-iptables-rules Accounting");
|
||||
}
|
||||
|
||||
private Processor createSaltCallProc() {
|
||||
return new ShellProcessor("salt-call state.sls pacs && invoke-rc.d apache2 reload >/dev/null 2>&1");
|
||||
}
|
||||
|
||||
private Processor createZonefileProc(final EntityManager em, final Pac pac) {
|
||||
final Map<String, Object> zonefileTemplateVars = new HashMap<String, Object>();
|
||||
zonefileTemplateVars.put("sio", Long.toString(System.currentTimeMillis()/1000L));
|
||||
|
@ -20,9 +20,9 @@
|
||||
ServerAdmin webmaster@${pac.name}.hostsharing.net
|
||||
|
||||
SSLEngine On
|
||||
SSLCertificateFile /etc/apache2/pems-enabled/${pac.name}.hostsharing.net.crt
|
||||
SSLCertificateKeyFile /etc/apache2/pems-enabled/${pac.name}.hostsharing.net.key
|
||||
SSLCertificateChainFile /etc/apache2/pems-enabled/${pac.name}.hostsharing.net.chain
|
||||
SSLCertificateFile /etc/apache2/pems-custom/_.hostsharing.net.crt
|
||||
SSLCertificateKeyFile /etc/apache2/pems-custom/_.hostsharing.net.key
|
||||
SSLCertificateChainFile /etc/apache2/pems-custom/_.hostsharing.net.chain
|
||||
|
||||
<Directory />
|
||||
SSLRequireSSL On
|
||||
|
Loading…
Reference in New Issue
Block a user