Re: [wpkg-users] Exclude a computer
Am 20.12.2011 16:32, schrieb Rainer Meier: Hi, On 20.12.2011 15:57, Bruno CHOQUET wrote: I have already done. But it 's complicate because i have two profiles : - one profile with 29 tools for TOTO computer (without Foxit) - one profile with 30 tools for ALL OTHER COMPUTERS But, when i add, change, remove a package, i must to change two profiles : it's not a good method for me... Why not using a profile dependency? Create a base profile profile id='base' package / !-- all your 29 packages -- /profile Then create your CommonTools and CommonToolsToto profiles: profile id='CommonTools' depends profile-id='base' / package package-id='Foxit' / /profile profile id='CommonToolsToto' depends profile-id='base' / /profile If you still want to use just one single profile, but exclude one package from one host you can use the conditions introduced with WPKG v1.3.0 package package-id='Foxit' condition check type=logical condition=not check type=host condition=hostname value=toto/ /check /condition /package -- Stefan P. Top-posting: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] Exclude a computer
Hi Stefan, On 21.12.2011 11:45, Stefan Pendl wrote: If you still want to use just one single profile, but exclude one package from one host you can use the conditions introduced with WPKG v1.3.0 Oh, just noticed that one of my answers did not hit the list as Bruno answered to me directly and I've replied... Just for completeness on the list... Looks like we came to the same conclusion. Bruno is going for the conditional-exclude as he told me. Hi, On 20.12.2011 16:40, Bruno CHOQUET wrote: Hi :) This is not possible for me because i have 2 networks : NET1 and NET2 Computer TOTO is in the NET1. NET1 uses ONLYNET1 profile, that depends of ALL NETWORKS profile. NET2 uses directly ALL NETWORKS profile. ALL NETWORKS profile contains the 30 packages, include Foxit. So you say your structure looks as follows: profile id='ONLYNET1' depends profile-id='ALL_NETWORKS' / package / /profile profile id='ALL_NETWORKS' package / !-- all your 30 packages -- /profile And TOTO is assigned to ONLYNET1. So why isn't it possible do do it as follows? profile id='TOTO' depends profile-id='CommonToolsToto' / package / /profile profile id='ONLYNET1' depends profile-id='ALL_NETWORKS' / package / /profile profile id='ALL_NETWORKS' depends profile-id='CommonTools' / /profile profile id='base' package / !-- all your 29 packages -- /profile profile id='CommonTools' depends profile-id='base' / package package-id='Foxit' / /profile profile id='CommonToolsToto' depends profile-id='base' / /profile I was assuming that ONLYNET1 will remain independent from TOTO, so you can assign the TOTO profile to the TOTO host and still have to maintain your base package set only once, in the 'base' profile. Alternatively just use profile id='TOTO' depends profile-id='base' / package / /profile profile id='ONLYNET1' depends profile-id='ALL_NETWORKS' / package / /profile profile id='ALL_NETWORKS' depends profile-id='CommonTools' / /profile profile id='base' package / !-- all your 29 packages -- /profile profile id='CommonTools' depends profile-id='base' / package package-id='Foxit' / /profile So TOTO will have the base profile assigned and ONLYNET1 + ALL_NETWORKS still use CommonTools including Foxit. Alternatively WPKG 1.3.0 supports advanced host matching, but I do not recommend this for this use case: profile id='CommonTools' package package-id='Foxit' condition check type=logical condition=not check type=host condition=hostname value=^TOTO$ / /check /condition /package !-- all your 30packages -- /profile I would rather refer to this as an ugly hack which is hard to maintain on your side, but it would exclude the package Foxit on all nodes named TOTO. Remember: It works for WPKG 1.3.0 and newer only. br, Rainer - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] Exclude a computer
2011/12/20 Bruno CHOQUET bruno.choq...@unicaen.fr: Hello, 350 computers have a profile named CommonTools. Into the profile CommonTools, there are 30 packages like Firefox, Thunderbid, Foxit, Notepad++,... But i don't want than the computer TOTO instal the package Foxit. How to exclude the computer TOTO in package Foxit ? An idee, please ? Hi! Rename the CommonTools profile to CommonToolsLite, give the CommonToolsLite profile to TOTO. Then create a new profile named CommonTools that depends on profile-id CommonToolsLite, and includes package-id Foxit. Do it all in a development environmen first, to make sure you have no spelling errors, as a minor error may trigger an uninstall of all the packages from your computers. -CL - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] Exclude a computer
In the file HOST.XML first create a profile for TOTO, second, specify the profile to other computers. For example, Host.xml == host name=TOTOprofile-id = TheTOTO_Profile / host name=.+ profile-id=AllComputers / == With regards, Alexey Dubovsky. From: wpkg-users-boun...@lists.wpkg.org [mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Bruno CHOQUET Sent: Tuesday, December 20, 2011 6:12 PM To: wpkg-users@lists.wpkg.org Subject: [wpkg-users] Exclude a computer Hello, 350 computers have a profile named CommonTools. Into the profile CommonTools, there are 30 packages like Firefox, Thunderbid, Foxit, Notepad++,... But i don't want than the computer TOTO instal the package Foxit. How to exclude the computer TOTO in package Foxit ? An idee, please ? - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] Exclude a computer
I have already done. But it 's complicate because i have two profiles : - one profile with 29 tools for TOTO computer (without Foxit) - one profile with 30 tools for ALL OTHER COMPUTERS But, when i add, change, remove a package, i must to change two profiles : it's not a good method for me... Le 20/12/2011 15:31, Дубовский Алексей Георгиевич a écrit : In the file HOST.XML first create a profile for TOTO, second, specify the profile to other computers. For example, Host.xml == host name=TOTO profile-id = TheTOTO_Profile / host name=.+ profile-id=AllComputers / == With regards, Alexey Dubovsky. From: wpkg-users-boun...@lists.wpkg.org [mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Bruno CHOQUET Sent: Tuesday, December 20, 2011 6:12 PM To: wpkg-users@lists.wpkg.org Subject: [wpkg-users] Exclude a computer Hello, 350 computers have a profile named CommonTools. Into the profile CommonTools, there are 30 packages like Firefox, Thunderbid, Foxit, Notepad++,... But i don't want than the computer TOTO instal the package Foxit. How to exclude the computer TOTO in package Foxit ? An idee, please ? - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] Exclude a computer
This is not possible for me because i have 2 networks : NET1 and NET2 Computer TOTO is in the NET1. NET1 uses ONLYNET1 profile, that depends of ALL NETWORKS profile. NET2 uses directly ALL NETWORKS profile. ALL NETWORKS profile contains the 30 packages, include Foxit. Le 20/12/2011 15:27, clei...@gmail.com a écrit : 2011/12/20 Bruno CHOQUETbruno.choq...@unicaen.fr: Hello, 350 computers have a profile named CommonTools. Into the profile CommonTools, there are 30 packages like Firefox, Thunderbid, Foxit, Notepad++,... But i don't want than the computer TOTO instal the package Foxit. How to exclude the computer TOTO in package Foxit ? An idee, please ? Hi! Rename the CommonTools profile to CommonToolsLite, give the CommonToolsLite profile to TOTO. Then create a new profile named CommonTools that depends on profile-id CommonToolsLite, and includes package-id Foxit. Do it all in a development environmen first, to make sure you have no spelling errors, as a minor error may trigger an uninstall of all the packages from your computers. -CL - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] Exclude a computer
Hi, On 20.12.2011 15:57, Bruno CHOQUET wrote: I have already done. But it 's complicate because i have two profiles : - one profile with 29 tools for TOTO computer (without Foxit) - one profile with 30 tools for ALL OTHER COMPUTERS But, when i add, change, remove a package, i must to change two profiles : it's not a good method for me... Why not using a profile dependency? Create a base profile profile id='base' package / !-- all your 29 packages -- /profile Then create your CommonTools and CommonToolsToto profiles: profile id='CommonTools' depends profile-id='base' / package package-id='Foxit' / /profile profile id='CommonToolsToto' depends profile-id='base' / /profile Then just assign CommonToolsToto to your TOTO host, and ComonTools to all other hosts. Of course you could also directly assign 'base' to TOTO. Note: Renaming profiles assigned does not have any effect on package installation. Just assigning the same package via different profiles does not trigger re-install or similar actions. So feel free to re-arrange your profile structure the way you like it. br, Rainer - wpkg-users mailing list archives http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users