Declare variable user created with limits

Hi,

I have a variable with this structure where i declare the users that i have to create.

`
struct :
users:

  • { name: user1, uid: 2001, shell: /bin/sh, group: grp1, groups: grp2, home: /home/user1 }
  • { name: user2, uid: 2002, shell: /bin/sh, group: grp1, groups: grp2, home: /home/user2 }
  • { name: user3, uid: 2002, shell: /bin/sh, group: grp1, groups: grp2, home: /home/user3 }
    `

For each user, i want to define the limits but i don’t know how to declare this in the structure of my variable “struct”.

`

  • { type: soft, item: nofile, value: 65536}
  • { type: hard, item: nofile, value: 65536}
  • { type: soft, item: nproc, value: 16000}
  • { type: hard, item: nproc, value: 16000}
    `

Thanks for your help,

Matt

Piotr

Hi,

Thx for you reply.
I’m gonna to test.

Matt