Puppet: Useful commands

From Define Wiki
Revision as of 15:05, 11 March 2015 by Michael (talk | contribs) (Created page with "== File == <syntaxhighlight> </syntaxhighlight> == User == <syntaxhighlight> user {"teamcity": name => teamcity, ensure => present, shell => "/bin/bash", home => "/hom...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File

User

        user {"teamcity":
        name => teamcity,
        ensure => present,
        shell => "/bin/bash",
        home => "/home/teamcity",
        managehome => true,
        }

Package

    package{ "java-1.8.0-openjdk":
        ensure => installed,
    }

Exec

        exec{ "keyscan2":
        user => teamcity,
        command => "/usr/bin/ssh-keyscan -p 7999 dvcs"
        }