DEV Community

Cover image for Adding the web-data user to another group with puppet
Julian
Julian

Posted on

2 1

Adding the web-data user to another group with puppet

this blog post is mainly a note to myself for future reference.

profile::nginx

  ...
  # the user is not created here. lets say the user is prepared here.
  @user { 'www-data':
    # groups     => ['somegroup'],
    gid         => '33',
    membership  => minimum,
  }
  ...

profile::other_profile_which_needs_to_add_the_group

  # here the user is created aka realized but with the extra group `mynewgroup` added.
  User <| title == 'www-data' |> { groups +> "mynewgroup" }

@@ means the resource is exported. also see https://puppet.com/docs/puppet/5.3/lang_exported.html

@@user { 'www-data':
    ...
}

@ means the resource is virtual. also see https://puppet.com/docs/puppet/5.3/lang_virtual.html

@user { 'www-data':
    ...
}

further reading:

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more