restructuration des profiles, séparation du profile variables en templates

tags/0.1.1 0.1.1
Daniel Berteaud 13 years ago
parent 426758017c
commit d9ef695339
  1. 2
      createlinks
  2. 8
      ipasserelle-gp.spec
  3. 13
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/profiles/variables.xml/10All
  4. 15
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/profiles/variables.xml/template-begin
  5. 1
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/profiles/variables.xml/template-end
  6. 10
      root/home/e-smith/files/shares/wpkg/files/hosts.xml
  7. 42
      root/home/e-smith/files/shares/wpkg/files/profiles.xml

@ -8,4 +8,4 @@ event_link("initialize-default-databases", "wpkg-update", "02");
templates2events("/home/e-smith/files/shares/tools/files/scripts/conf.bat", qw(wpkg-update bootstrap-console-save)); templates2events("/home/e-smith/files/shares/tools/files/scripts/conf.bat", qw(wpkg-update bootstrap-console-save));
templates2events("/home/e-smith/files/shares/wpkg/files/config.xml", qw(wpkg-update bootstrap-console-save)); templates2events("/home/e-smith/files/shares/wpkg/files/config.xml", qw(wpkg-update bootstrap-console-save));
templates2events("/home/e-smith/files/shares/wpkg/files/profiles/variables.xml", qw(wpkg-update bootstrap-console-save));

@ -1,5 +1,5 @@
%define version 0.1.0 %define version 0.1.1
%define release 1 %define release 1.beta1
%define name ipasserelle-gp %define name ipasserelle-gp
@ -23,6 +23,9 @@ Ce paquet permet de gérer un parc de machines sous MS Windows
Basé sur WPKG et d'autres outils Basé sur WPKG et d'autres outils
%changelog %changelog
* Mon Jun 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1.sme
- restructure profiles
* Mon Jun 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1.sme * Mon Jun 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1.sme
- initial release - initial release
@ -31,6 +34,7 @@ Basé sur WPKG et d'autres outils
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
%{__mkdir_p} root/home/e-smith/files/shares/wpkg/files/profiles/
perl createlinks perl createlinks
%install %install

@ -0,0 +1,13 @@
<profile id="variables">
<variable name="IPASSERELLE_DOMAIN" value="{$DomainName}" />
<variable name="IPASSERELLE_NT_DOMAIN" value="{$smb{'Workgroup'}}" />
<variable name="IPASSERELLE_NAME" value="{$smb{'ServerName'}}" />
<variable name="IPASSERELLE_IP" value="{$InternalInterface{'IPAddress'}}" />
<variable name="BACKUP_SERVER_IP" value="{$wpkg{'BackupServer'} || $InternalInterface{'IPAddress'}}" />
<variable name='BACKUP_USER' value='$wpkg{'BackupUser'} || 'backup' />
<variable name="IPASSERELLE_HOME_URL" value="http://auth.%IPASSERELLE_DOMAIN%" />
<variable name="TOOLS" value="\\%IPASSERELLE_IP%\tools" />
<variable name="WPKGLOGS" value="\\%IPASSERELLE_IP%\wpkglogs" />
<variable name="SOFTWARE" value="\\%IPASSERELLE_IP%\wpkg\softwares" />
<variable name="SETTINGS" value="\\%IPASSERELLE_IP%\wpkg\settings" />
</profile>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<profiles:profiles xmlns:profiles="http://www.wpkg.org/profiles"
xmlns:wpkg="http://www.wpkg.org/wpkg"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wpkg.org/profiles xsd/profiles.xsd ">
<!--
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
-->

@ -5,13 +5,15 @@
xsi:schemaLocation="http://www.wpkg.org/hosts xsd/hosts.xsd "> xsi:schemaLocation="http://www.wpkg.org/hosts xsd/hosts.xsd ">
<!-- <!--
<host name="POSTE1" profile-id="default"> <host name="POSTE1" profile-id="workstation">
<profile id="graphiste" /> <profile id="graphiste" />
<profile id="skyper" /> <profile id="skype" />
<profile id="iphoner" /> <profile id="iphone" />
<profile id="admin" /> <profile id="admin" />
</host> </host>
<host name="SERVER1 profile-id="default" />
--> -->
<host name=".+" profile-id="default" /> <host name=".+" profile-id="worstation" />
</hosts:wpkg> </hosts:wpkg>

@ -4,9 +4,23 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wpkg.org/profiles xsd/profiles.xsd "> xsi:schemaLocation="http://www.wpkg.org/profiles xsd/profiles.xsd ">
<!-- Le profile workstation contient les logiciels classiques
à déployer sur un poste client -->
<profile id="workstation">
<depends profile-id="default" />
<package package-id="tightvnc" />
<package package-id='thunderbird' />
<package package-id="flash" />
<package package-id='pdfcreator' />
<package package-id="adobe_reader" />
<package package-id="vlc" />
<!-- <package package-id="libreoffice" /> -->
</profile>
<!-- Le profile graphiste contient une compilation de logiciels pour <!-- Le profile graphiste contient une compilation de logiciels pour
l'édition d'image et la publication --> l'édition d'image et la publication -->
<profile id="graphiste"> <profile id="graphiste">
<depends profile-id="default" />
<package package-id="gimp" /> <package package-id="gimp" />
<package package-id="inkscape" /> <package package-id="inkscape" />
<package package-id="scribus" /> <package package-id="scribus" />
@ -14,52 +28,40 @@
<!-- profile d'administrateur, contient quelques outils utiles --> <!-- profile d'administrateur, contient quelques outils utiles -->
<profile id="admin"> <profile id="admin">
<depends profile-id="default" />
<package package-id="putty" /> <package package-id="putty" />
<package package-id="notepad++" /> <package package-id="notepad++" />
<package package-id="winscp" /> <package package-id="winscp" />
</profile> </profile>
<!-- pour ceux qui ont un iPhone, permet de déployer iTunes --> <!-- pour ceux qui ont un iPhone, permet de déployer iTunes -->
<profile id="iphoner"> <profile id="iphone">
<depends profile-id="default" />
<package package-id="itunes" /> <package package-id="itunes" />
</profile> </profile>
<!-- Pour ceux qui veulent Skyper --> <!-- Pour ceux qui veulent Skyper -->
<profile id="skyper"> <profile id="skype">
<depends profile-id="default" />
<package package-id="skype" /> <package package-id="skype" />
</profile> </profile>
<!-- profile par défaut appliqué à tous les postes --> <!-- profile par défaut appliqué à tous les postes -->
<profile id="default"> <profile id="default">
<variable name="IPASSERELLE_DOMAIN" value="__DNS_DOMAIN__" /> <depends profile-id="variables" />
<variable name="IPASSERELLE_NT_DOMAIN" value="__NT_DOMAIN__" />
<variable name="IPASSERELLE_NAME" value="__NETBIOS_NAME__" />
<variable name="IPASSERELLE_IP" value="__IP_ADDRESS__" />
<variable name="BACKUP_SERVER_IP" value="__IP_ADDRESS__" />
<variable name="IPASSERELLE_HOME_URL" value="http://auth.%IPASSERELLE_DOMAIN%" />
<variable name="TOOLS" value="\\%IPASSERELLE_IP%\tools" />
<variable name="WPKGLOGS" value="\\%IPASSERELLE_IP%\wpkglogs" />
<variable name="SOFTWARE" value="\\%IPASSERELLE_IP%\wpkg\softwares" />
<variable name="SETTINGS" value="\\%IPASSERELLE_IP%\wpkg\settings" />
<package package-id="wpkg" /> <package package-id="wpkg" />
<package package-id="logs" /> <package package-id="logs" />
<package package-id="cacert" /> <package package-id="cacert" />
<package package-id="productkey" /> <package package-id="productkey" />
<package package-id="tightvnc" />
<package package-id="ccleaner" /> <package package-id="ccleaner" />
<package package-id='ntp' /> <package package-id='ntp' />
<package package-id="jre" /> <package package-id="jre" />
<package package-id="firefox" /> <package package-id="firefox" />
<package package-id="flash" />
<package package-id='thunderbird' />
<package package-id="adobe_reader" />
<package package-id="sumatrapdf" /> <package package-id="sumatrapdf" />
<package package-id='pdfcreator' />
<!--<package package-id="libreoffice" />-->
<package package-id="7zip" /> <package package-id="7zip" />
<package package-id="vlc" />
<package package-id="fusioninventory" /> <package package-id="fusioninventory" />
<!-- patch le registre pour la jonction à un domaine NT 4
nécessaire uniquement pour les Windows 7 -->
<package package-id="sambawin7" os="6\.1\.\d{4}" /> <package package-id="sambawin7" os="6\.1\.\d{4}" />
</profile> </profile>

Loading…
Cancel
Save