When trying to execute the code bellow I get this error:

err: 
/Stage[main]//Node[ftp.example.com]/Addclient[uniqueID]/File[/PATH/inbox]/owner:
 
change from 2279892064 to 2279892064 failed: Failed to set owner to 
'2279892064': integer 2279892064 too big to convert to `int'

This code works for anything that doesnt exceed the max size of an integer 
but when you do the error above pops up. (example number 2279892064)
I am trying to keep the username a string throughout but somewhere along 
the line puppet is trying to convert it into an integer. 

Has anyone else experienced this and have a potential fix?

Thanks in advanced. 

How I call the Code:
    addclient { "uniqueID": username => "2279892064", uid => '7057', home 
=> '/PATH/', password => '$1$30P5Lb0M$2Ut3TkD91cd4GtTO5PVnx0'; }

Code:
define addclient ( $username='', $uid='', $shell='/sbin/nologin' , 
$home='', $password='', $groups='' ) {
    user {
        "$username":
            uid         => $uid,
            gid         => '7005',
            allowdupe   => false,
            shell       => $shell,
            home        => $home,
            password    => $password,
            groups      => $groups,
            ensure      => present;
    }

    file {
        "$home":
            ensure  => "directory",
            require => User["$username"],
            owner   => root,
            group   => root,
            mode    => '755';

        "$home/inbox":
            ensure  => "directory",
            require => User["$username"],
            owner   => "$username",
            group   => "sftponly",
            mode    => '775';

        "$home/dropbox":
            ensure  => "directory",
            require => User["$username"],
            owner   => "$username",
            group   => "sftponly",
            mode    => '775';
    }

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to