From 58bed7335dec44f8ed331d66f9c15808a15204eb Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 4 Apr 2012 17:41:18 +0200 Subject: [PATCH] add fusioninventory agent support --- createlinks | 4 +++ .../fusioninventory/fusioninventory_x64.reg/10All | 34 ++++++++++++++++++++++ .../fusioninventory_x64.reg/template-begin | 0 .../fusioninventory/fusioninventory_x86.reg/10All | 34 ++++++++++++++++++++++ .../fusioninventory_x86.reg/template-begin | 0 5 files changed, 72 insertions(+) create mode 100644 root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All create mode 100644 root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/template-begin create mode 100644 root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All create mode 100644 root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/template-begin diff --git a/createlinks b/createlinks index 3ad24a0..e5d3ffc 100644 --- a/createlinks +++ b/createlinks @@ -4,8 +4,12 @@ use esmith::Build::CreateLinks qw(:all); event_link("wpkg-init", "wpkg-update", "20"); event_link("wpkg-init", "ipasserelle-update", "20"); +event_link("wpkg-update-packages", "wpkg-update", "30"); event_link("initialize-default-databases", "wpkg-update", "02"); templates2events("/home/e-smith/files/shares/wpkg/files/settings/wpkg-gp/Wpkg-GP.ini", 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/settings/fusioninventory/fusioninventory_x86.reg", qw(wpkg-update bootstrap-console-save)); +templates2events("/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg", qw(wpkg-update bootstrap-console-save)); + diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All new file mode 100644 index 0000000..a953e6f --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/10All @@ -0,0 +1,34 @@ +Windows Registry Editor Version 5.00 + +{ + +my $server = ${'fusioninventory-agent'}{'Server'} || 'https://inventory.firewall-services.com/'; +my $user = ${'fusioninventory-agent'}{'User'} || $DomainName; +my $pass = ${'fusioninventory-agent'}{'Password'} || 'secret'; + +my $out .=<"EOF"; +[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\FusionInventory-Agent] +"server"="$server" +"tag"="$DomainName" +"user"="$user" +"password"="$pass" +"realm"="" +"ca-cert-file"="" +"no-ssl-check"="0" +"proxy"="" +"rpc-port"="" +"debug"="1" +"rpc-trust-localhost"="1" +"scan-homedirs"="0" +"basevardir"="C:\\\\Program Files (x86)\\\\FusionInventory-Agent\\\\dumps" +"share-dir"="C:\\\\Program Files (x86)\\\\FusionInventory-Agent\\\\share" +"logfile"="C:\\\\Program Files (x86)\\\\FusionInventory-Agent\\\\agent-log.txt" +"logfile-maxsize"="5" + +EOF + +$out =~ s/\n/\r\n/g; + +$OUT = $out; + +} diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x64.reg/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All new file mode 100644 index 0000000..7050400 --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/10All @@ -0,0 +1,34 @@ +Windows Registry Editor Version 5.00 + +{ + +my $server = ${'fusioninventory-agent'}{'Server'} || 'https://inventory.firewall-services.com/'; +my $user = ${'fusioninventory-agent'}{'User'} || $DomainName; +my $pass = ${'fusioninventory-agent'}{'Password'} || 'secret'; + +my $out .=<"EOF"; +[HKEY_LOCAL_MACHINE\SOFTWARE\FusionInventory-Agent] +"server"="$server" +"tag"="$DomainName" +"user"="$user" +"password"="$pass" +"realm"="" +"ca-cert-file"="" +"no-ssl-check"="0" +"proxy"="" +"rpc-port"="" +"debug"="1" +"rpc-trust-localhost"="1" +"scan-homedirs"="0" +"basevardir"="C:\\\\Program Files\\\\FusionInventory-Agent\\\\dumps" +"share-dir"="C:\\\\Program Files\\\\FusionInventory-Agent\\\\share" +"logfile"="C:\\\\Program Files\\\\FusionInventory-Agent\\\\agent-log.txt" +"logfile-maxsize"="5" + +EOF + +$out =~ s/\n/\r\n/g; + +$OUT = $out; + +} diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/fusioninventory/fusioninventory_x86.reg/template-begin new file mode 100644 index 0000000..e69de29