similar to: Is it possible to conditionally replace a file ?

Displaying 20 results from an estimated 1000 matches similar to: "Is it possible to conditionally replace a file ?"

2011 Dec 10
5
create user and push out keys.
Hello Im just been working with puppet, the first usecase i have is to set up a system to create users and then push ssh keys on this machines in the create users .ssh files. I just started with puppet so i am a bit cluesless, Can someone push me in the right direction? Im having a centos enviorment. -- You received this message because you are subscribed to the Google Groups "Puppet
2013 Apr 19
12
How to pass puppet/hiera veriable to external script ? Do I need to ?
Hi, I have a problem with running puppet with hiera based data. I am trying to cleanup user accounts on a range of servers (to have the same uid/gid). When I create existing account but with different uid/gid it doesn''t change files group ownership so I need to run a script which cleanups after cleanup ;-) I use the following code: --- :backends: - yaml :hierarchy: -
2013 May 20
10
Problem creating user with Puppet
Hi, (Since I am relatively new to Puppet, this might be some trivial problem) I am trying to create a user with Puppet, using following code: user { "clavis": ensure => "present", home => "/home/clavis", name => "clavis", shell => "/bin/bash",
2006 Aug 22
2
Exempt mailboxes from indexing?
I looked through the wiki and the archives, but couldn't find an answer to this question. We use a webmail product that uses three dummy mbox dotfiles for storing configuration and temporary info. I'm trying to find a way to have dovecot's indexing ignore all dotfiles, and so far have had no luck (other than, of course, coding it in myself). Does anyone know if this is possible?
2018 Dec 31
2
Localhost imap server fails after upgrade from 2.2.33.2-1 to 1:2.3.2.1 (fwd)
Hi Aki, Oops; I did not think carefully enough about your instructions. Here is the output from $ dovecot -n -c /home/meuser/dotfiles/auto-stanford-dovecot.conf # 2.3.2.1 (0719df592): /home/meuser/dotfiles/auto-stanford-dovecot.conf # Pigeonhole version 0.5.2 () # OS: Linux 4.18.0-13-generic x86_64 Ubuntu 18.10 ext4 # Hostname: cpbl-t450s doveconf: Warning: please set
2008 Oct 16
5
virutal resources and ssh_authorized_key
Hello! I''ve got question - how to use ssh_autorized_key as a virtual resource? I''ve got bunch of users and ssh_authorized_key virtual resources, but only users gets to the target system - ssh keys not... I write something like: class admins { @user { "username": ... } @ssh_authorized_key { "username": ensure => present, key => "...",
2003 Jan 09
2
Help With Restoring
Hi All, I have been using rsync to backup to a central server with a 7 day incremental script on 2 Redhat boxen. #!/bin/sh PATH=/usr/local/bin:/usr/bin:/bin DAY=`date +%A` export PATH DAY [ -d /root/emptydir ] || mkdir /root/emptydir rsync --rsh=/usr/bin/ssh --delete -a /root/emptydir/ CENTRAL_SERVER_IP:/backup2/BACKED_UP_SERVER_FQDN/$DAY rmdir /root/emptydir rsync --delete
2018 Dec 31
2
Localhost imap server fails after upgrade from 2.2.33.2-1 to 1:2.3.2.1 (fwd)
Hi Aki, I am not 100% sure. I do not really know what my OS does. "ps -A" says dovecot is running, but if I say "sudo service dovecot stop", my email client works fine still (that is, assuming the old version of dovecot is installed). ie the on-demand instances of dovecot-imapd that Alpine calls are, I assume, started and stopped by Alpine. (?) Is my OS using dovecot
1998 Mar 31
3
hide dotfiles not working.
Just started with Samba a few weeks ago so am still a newbie. Am serving a single W-95 client reasonably well - it allows users to log on using their unix id and passwd, and they can all browse their unix home directories. However .... I can't seem to get the "hide dotfiles" directive to work. Nor the "hide files"! Also, If a user on W-95 saves a file to unix called,
2018 Dec 31
2
Localhost imap server fails after upgrade from 2.2.33.2-1 to 1:2.3.2.1 (fwd)
Hi Aki, Bingo! Putting that line in dovecot.conf rather than my custom file, and then using my old custom file, unchanged, from Alpine works perfectly. My only remaining question, then, would be ... what was this (change) about / or is there any documentation that I should/could have read to know what to do without asking a lead developer? Thank you very much. I hope you had a great start
2012 Apr 17
4
top not restoring terminal echo/icanon correctly
(Please keep me CC'd as I'm not subscribed to the list) I'd like to request that folks running RELENG_8 (and RELENG_9, though I do not use it) please check the behaviour of their terminal after each of following commands are run (check terminal after each command): top -a (press "q" after 1 screen refresh) top -b If you find that your input characters in your shell
2007 Oct 18
3
Managehome not working in User type in Linux OS
I am using the user type function as below to create and manage user accounts in RHEL, CentOS, Ubuntu, FreeBSD & BSD, I have only tried on RHEL, CentOS it works fine for user creation, but not managing homedirectory. I ran puppetd -test in Ubuntu it showed the below message in debug mode Ubuntu(Debian), don''t create homedirectory unless -m arg is passed. [0;34mdebug:
2018 Dec 31
2
Localhost imap server fails after upgrade from 2.2.33.2-1 to 1:2.3.2.1
Hi Aki, (This message might not make it to the list; I have to switch back to the other dovecot to be able to send from that address) Oops; I did not think carefully enough about your instructions. Here is the output from $ dovecot -n -c /home/meuser/dotfiles/auto-stanford-dovecot.conf # 2.3.2.1 (0719df592): /home/meuser/dotfiles/auto-stanford-dovecot.conf # Pigeonhole version 0.5.2 () # OS:
2011 Jun 10
11
cannot manage home directories
user {''username'': uid => 501, gid => ''staff'', comment => ''comment'', ensure => present, home => ''/Users/sysop'', shell =>
2018 Dec 31
2
Localhost imap server fails after upgrade from 2.2.33.2-1 to 1:2.3.2.1
Hi Aki, Yes, the same connect error: imap(meuser,)Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied The mail location in "doveconf -n" (belo) does not reflect my preferences. In Alpine, if I acknowledge the error I get, which tells me to add novalidate-cert in my pinerc file, it prompts me for my POSIX username and password. After that, I get my
2007 Jun 11
4
freeBSD User provider
Hello, from the doc it seems that the User type has a provider of ''pw'' for FreeBSD. It seems the provider does not allow dupelicate, does not allow to manage the homedir and to manage password. in the code the duplicate uid is set so it seems the doc is out of date on this :) - manage home directory, i don''t really understand what is that parameter. The
2019 Jan 06
1
Localhost imap server fails after upgrade from 2.2.33.2-1 to 1:2.3.2.1
Hello Stephan, I'm interested to see this get fixed (and ideally one day for it to be really easy for people to set up Alpine so that it competes fairly with heavier GUIs!), but I do not know that I am qualified to help (beyond light testing). Is there someone from Alpine on this thread? The second (askubuntu.com) link you give is my own question (and answer, based on Aki Tuomi's
2009 Feb 23
8
Puppet's Search function
Hello all, I have read through the sparse documentation on the Search (intentionally capitalized to differentiate from the verb) function as well as searched the group list (and mail archives) with little success to finding an answer. It is my understanding that I want to use the Search function to achieve my goal. I would like to know: a) is my understanding about the purpose of this function
2011 Aug 15
4
trying to resolve group dependency in creating users
Hi all, Using Puppet 2.5, I have a class which creates users: # cat modules/users/manifests/init.pp class users { user { ''ringo'': ensure => present, uid => ''1506'', groups => [''admin''], shell => ''/bin/bash'', home => ''/home/ringo'', managehome
2009 Feb 24
6
User/managehome with useradd provider on CentOS
Hi, When you set managehome to false on a User ressource, homedir will still be created on a CentOS box as the -M flag is not passed to useradd. $ diff -u /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/ useradd.rb.bak \ /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/useradd.rb --- /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/ useradd.rb.bak 2008-10-23 01:19:07.000000000 +0200