Re: [Puppet Users] Why IF-ELSE not work?

2013-02-14 Thread Евгений Верещагин
I want call diffrent manifest files for diffrent rules and systems. I think that write all rules in one file is not good idea :-) четверг, 14 февраля 2013 г., 18:41:33 UTC+4 пользователь jcbollinger написал: > > > > On Thursday, February 14, 2013 5:55:35 AM UTC-6, blalor wrote: >> >> Import is l

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
Read "Why IF-ELSE not work?", it's very it's important. четверг, 14 февраля 2013 г., 14:42:34 UTC+4 пользователь bernard...@morpho.com написал: > > Ok great, I will test, thanks for the “tip” > > > > Cordialement, > > > > Bernard Granier > > CE Plateforme Système > > bernard...@morpho.com >

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
I think that "include" for classes, and "import" for pp-files. I learn puppet second day :-) четверг, 14 февраля 2013 г., 14:27:46 UTC+4 пользователь bernard...@morpho.com написал: > > Ah ok, you use an import and not an include. > > > > As I understood, this is not exactly the same things. >

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
/etc/puppet/manifests/site.pp /etc/puppet/manifests/os/win.pp /etc/puppet/manifests/os/lin.pp site.pp: import 'os/win.pp' import 'os/lin.pp' четверг, 14 февраля 2013 г., 14:17:47 UTC+4 пользователь bernard...@morpho.com написал: > > Subdirs ? which one ? > > > > Cordialement, > > > > Bernar

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
You can put it into subdirs. четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь bernard...@morpho.com написал: > > Yes but is it ok to have in directory …/puppet/manifest let’s say three > files : > > file1.pp defining some nodes > > file2.pp defining some nodes > > > > and site.pp with

[Puppet Users] Why IF-ELSE not work?

2013-02-13 Thread Евгений Верещагин
I try include different .pp for my systems. site.pp like: if $operatingsystem == 'debian' { import '../my/os/linux/debian.pp' } elsif $operatingsystem == 'windows' { import '../my/os/windows/windows.pp' } else { import '../my/os/default/default.pp' } and I try CASE: case $operatingsystem {

[Puppet Users] Re: How to call one manifset from another

2013-02-13 Thread Евгений Верещагин
import 'some.pp' среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya написал: > > Hi all, > > I have 3 different manifests. How can i call one manifest from another > manifest? > > Please do help me with this. > -- You received this message because you are subscribed to the

Re: [Puppet Users] non-US-ASCII charapters in manifests (windows & puppet 3.1)

2013-02-11 Thread Евгений Верещагин
> > I think you are running into https://projects.puppetlabs.com/issues/17010. > The win32-dir gem we are using to return the COMMON_APPDATA directory > returns a ruby string in UTF-16LE, which for some reason File.join does not > allow. It assumes it is always passed UTF-8 strings, or at leas

[Puppet Users] non-US-ASCII charapters in manifests (windows & puppet 3.1)

2013-02-11 Thread Евгений Верещагин
Puppet 3.1 is released, but problem not fixed. Puppet 3.0 and 2.x don't test manifest for non-ASCII and write uncorrect characters to system (like file names, folders, files and other) . But now Puppet 3.1 test manifest and stop.

[Puppet Users] Re: How to use Agent on localized Windows?

2013-01-28 Thread Евгений Верещагин
<https://lh5.googleusercontent.com/-aRLPbc_OYbA/UQY4w9ivc6I/ACU/nqH8b5IRbgI/s1600/puppet+3.1b2.png> Puppet client 3.1b2 write other message. It works with US-ASCII only. пятница, 21 декабря 2012 г., 14:57:50 UTC+4 пользователь Евгений Верещагин написал: > > I try configur

[Puppet Users] Re: Puppet Support for Windows

2013-01-27 Thread Евгений Верещагин
I have big problem on localized Wondows: https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/HN9Fg3Q_n3M You can't use non-ANSI characters in file\folder names, user names, etc. Now I try workaround. воскресенье, 27 января 2013 г., 1:12:03 UTC+4 пользователь damian@gmail.com н

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-22 Thread Евгений Верещагин
is there any news? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/E0jVQyWpt4wJ. To post to this group, send email to puppet-users@googlegroups.com. To unsu

Re: [Puppet Users] Re: Plan the manifests structure

2013-01-14 Thread Евгений Верещагин
Yes! понедельник, 14 января 2013 г., 22:27:10 UTC+4 пользователь Josh Cooper написал: > > On Mon, Jan 14, 2013 at 10:03 AM, Евгений Верещагин > > wrote: > >> > http://www.slideshare.net/PuppetLabs/modern-module-development-ken-barber-2012-edinburgh-puppet-ca

[Puppet Users] Re: Plan the manifests structure

2013-01-14 Thread Евгений Верещагин
понедельник, 14 января 2013 г., 21:54:32 UTC+4 пользователь Stefan Heijmans написал: > > This might help, watch/read this from Ken Barber; Modern Module Development > http://youtu.be/zNXSKv6987g > > http://www.slideshare.net/PuppetLabs/modern-module-development-ken-barber-2012-edinburgh-puppet-c

[Puppet Users] Re: Plan the manifests structure

2013-01-14 Thread Евгений Верещагин
: > > > > On Monday, January 14, 2013 2:29:39 AM UTC-6, Евгений Верещагин wrote: >> >> How to divide the rules in the manifestos? >> >> I see some variants: >> >> 1. Write all rules in one file. It's not good idea. >> >> 2. Write any man

[Puppet Users] Plan the manifests structure

2013-01-14 Thread Евгений Верещагин
How to divide the rules in the manifestos? I see some variants: 1. Write all rules in one file. It's not good idea. 2. Write any manifestos like bsd.pp, linux.pp and do check on some parameters in this manifestos. 3. Write manifestos for each machine, by hostname or IP. 4. Includeв in the sit

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-09 Thread Евгений Верещагин
> > This is definitely a bug in ruby 1.8.7. I can see, using Process > Monitor, that ruby is calling CreateFile with a mangled filename. > I think, that bug is in Windows codepage. In Russian console it is cp866. I can change codepage to UTF: chcp 65001, but it work in current session of cmd

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-08 Thread Евгений Верещагин
21, 2012 at 2:57 AM, Евгений Верещагин > > wrote: > > I try configure Puppet for manage Windows. My OS is localized, all > system > > users and paths are renamed. If I write some russian text, puppet agent > > can't work correctly. For example, if I create

[Puppet Users] How to use Agent on localized Windows?

2012-12-21 Thread Евгений Верещагин
I try configure Puppet for manage Windows. My OS is localized, all system users and paths are renamed. If I write some russian text, puppet agent can't work correctly. For example, if I create user: user { 'Тест2': comment => 'Test user2 comment', password => 'pass', } I have bad name of user (