bcfg2.conf -> Python + serveur alternatif pour les tests

darcs-hash:20080209154327-af139-c843208c52d836363e55c737864499222189c44c.gz
This commit is contained in:
Jeremie Dimino 2008-02-09 16:43:27 +01:00
parent 548b89edd5
commit 886d5423b7
4 changed files with 30 additions and 31 deletions

View file

@ -113,11 +113,13 @@
<Group name="bcfg2tmp0" profile="true">
<Group name="crans"/>
<Group name="test"/>
</Group>
<Group name="bcfg2tmp1" profile="true">
<Group name="crans"/>
<Group name="mail-mx-secondary"/>
<Group name="test"/>
</Group>
<!-- +=================+ -->

28
Python/etc/bcfg2.conf Normal file
View file

@ -0,0 +1,28 @@
# -*- coding: utf-8; mode: python -*-
include("secrets")
header("Fichier de configuration de bcfg2")
if has("bcfg2-server"):
@[server]
%repository = "/var/lib/bcfg2"
%structures = "Bundler,Base"
%generators = "SSHbase,Cfg,TGenshi,Rules,Python"
%svn = "no"
@[statistics]
%sendmailpath = "/usr/sbin/sendmail"
@[communication]
%protocol = "xmlrpc/ssl"
%password = secrets.bcfg2_password
%key = "/etc/bcfg2.key"
%fingerprint = "2f110783f4cbd14e45a35de518ddbaea999a03ad"
%agent-port = 6790
@[components]
if has("test"):
%bcfg2 = "https://vert.adm.crans.org:6789"
else:
%bcfg2 = "https://bcfg2tmp1.adm.crans.org:6789"

View file

@ -1,3 +0,0 @@
<FileInfo>
<Info owner="root" group="root" perms="0600"/>
</FileInfo>

View file

@ -1,28 +0,0 @@
# -*- coding: utf-8; mode: conf-unix -*-
#
# Fichier gere par BCfg2
#
# Fichier de configuration de bcfg2.
{% include /var/lib/bcfg2/etc/genshi/utils.txt %}\
{% include /var/lib/bcfg2/etc/genshi/secrets.txt %}\
{% if has("bcfg2-server") %}\
[server]
repository = /var/lib/bcfg2
structures = Bundler,Base
generators = SSHbase,Cfg,TGenshi,Rules,Python
svn=no
{% end %}\
[statistics]
sendmailpath = /usr/sbin/sendmail
[communication]
protocol = xmlrpc/ssl
password = $bcfg2_password
key = /etc/bcfg2.key
fingerprint = 2f110783f4cbd14e45a35de518ddbaea999a03ad
agent-port = 6790
[components]
bcfg2 = https://vert.adm.crans.org:6789