Coder Social home page Coder Social logo

puppet-bashrc's People

Contributors

lvicainne avatar markruys avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

puppet-bashrc's Issues

Add ability to modify the ~/.bash_profile for users

I have a great need to modify the .bash_profile for individual users. I am working on a pull request but would like feedback on how to implement such a feature.

I was thinking about adding a key in the bashrc::users variable called 'bashprofile' and then have the puppet template iterate over all of the key/pair values. Of course, there wouldn't be any kind of sanity checking doing it this way.

bashrc::users:       
  - username: "SomeUserName"
    managelocalbashrc: true
    homedirectory: "/home/SomeUserName"
    bashprofile:  
      export:        
        - JAVA_HOME: /foo/bar
        - JBOSS_HOME: /fee/bar

templates/skel/profile.erb additions:

<% @key['bashprofile']['export'].each do |k| -%>
export <%= k %>=<%= k.keys %>  value:    
<% end -%>

This PR gives an example of what I'm thinking.

This module comes up as the first or second hit when searching for 'puppet module bash_profile'.

Thoughts?

Update dependencies

Hi,

Would there be any chance of updating the dependencies for both stdlib and concat as we would like to use your module but we have version 5.2 installed for both of these and your dependencies are less than 5

Thanks,
Sarah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.