Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

process_user param #26

Closed
Closed

Description

@dlondero

Am I doing something wrong? Need to set a custom user for Apache and reading in the init.pp looks like I should do:

class { 'apache':
process_user => 'vagrant',
}

But I still see Apache running as www-data (default for Ubuntu).

Activity

  1. alvagante commented on Jun 14, 2013

    @alvagante
    Member

    By default the Apache module, as many other Example42 modules, do not modify existing configuration files unless you don't provide them explicitely.
    So, in order to modify the apache use you have to pass a (custom) erb template for httpd.conf where you use the @process_user variable..
    Something like:

    class { 'apache':
      process_user => 'vagrant',
      template => 'site/apache/httpd.conf.erb',
    }
    

    and in site/templates/apache/httpd.conf.erb you need something like:

    User <%= @process_user %>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions