Forge Home

jss

JSS Puppet module

10,330 downloads

7,231 latest version

3.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.2.2 (latest)
  • 0.2.1
  • 0.2.0
  • 0.1.9
  • 0.1.8
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Apr 7th 2016
This version is compatible with:
  • Puppet Enterprise >= 3.0.0 < 2015.4.0
  • Puppet >= 3.0.0 < 5.0.0

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'tscopp-jss', '0.2.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add tscopp-jss
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install tscopp-jss --version 0.2.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

tscopp/jss — version 0.2.2 Apr 7th 2016

JSS

This module will install an configure the JAMF Software JSS web application and supporting database services. See www.github.com/tscopp/puppet-jss for vagrant environments and further documentation.

Before the module will function you must download the JSSInstaller.zip from JAMFNation, extract it, and place the ROOT.war in the ${puppet}/modules/jss/files/ directory.

At present clustering is limited to a maximum of two nodes.

TL;DR

puppet module install tscopp-jss cp ROOT.war modules/jss/files/

Single Context

node default{ jss::context{'production': ensure => present, firewall => true, } jss::db{'production': ensure => present, firewall => true, } }

http://${ip}:8080/production

Multi-Context

node default{ jss::context{'production': ensure => present, firewall => true, } jss::db{'production': ensure => present, firewall => true, } jss::context{'development': ensure => present, firewall => true, } jss::db{'development': ensure => present, firewall => true, } }

http://${ip}:8080/production, http://${ip}/development

Clustered

node jss01{ jss::context{'jssprod01': ensure => present, context => 'production', db_user => 'jamfsoftware', db_passwd => 'jamfsw03', } } node jss02 { jss::context{'jssprod02': ensure => present, context => 'production', db_user => 'jamfsoftware', db_passwd => 'jamfsw03', } } node db { jss::db{'production': ensure => present, db_user => 'jamfsoftware', db_passwd => 'jamfsw03', jss_addr => '192.168.56.101', } }

SSL

Currently SSL and NonSSL hosts can NOT exist on the same tomcat instance. If you'd like SSL certs you should create a keystore:

keytool -genkeypair -alias tomcat -keyalg RSA -keysize 2048 -validity 365 -keystore ~/keystore.jks

Create a CSR:

keytool -certreq -keyalg RSA -alias tomcat -keystore ~/keystore.jks

Sign the CSR in the JSS web interface. Download the ca.pem, and the signed webcert. Add them to the keystore:

keytool -import -alias root -keystore ~/keystore.jks trustcacerts -file ~/Downloads/ca.pem

keytool -import -alias tomcat -keystore ~/keystore.jks trustcacerts -file ~/Downloads/webcert.pem

Move keystore.jks to the modules/jss/files/ and add the following to the desired node: node default { jss::context{'production': ensure => present, api => false, firewall => true, db_user => 'produser', db_passwd => 'prodpw', keystoreFile => '/var/lib/tomcat7/keystore.jks', keystorePass => 'keystorepass', https => true, } jss::db{'production': ensure => present, context => 'production', firewall => true, } File{'keystore': ensure => present, path => '/var/lib/tomcat7/keystore.jks', source => 'puppet:///modules/jss/keystore.jks', owner => 'tomcat7', group => 'tomcat7', mode => '0600', } }

All parameters

Don't specify all the paramters at once, this section is merely for reference.

node default{ jss::context{'super_mega_broken' ensure='present', api=true, context = $title, db_addr='localhost', db_port='3306', db_user="${title}user", db_passwd="${title}pw", db_min_pool='5', db_max_pool='90', firewall=true, http=true, http_port='8080', http_proxy_port='8443', https=false, https_port='8443', keystore_path='/var/lib/tomcat7/keystore.jks', keystore_pass='', loadbalanced=false, log_path='/var/lib/tomcat7/logs', tomcat_dir='/var/lib/tomcat7', tomcat_max_threads='450', user_enrollment=true, war='ROOT.war' } jss::db{'super_mega_broken': ensure='present' context=$title, db_addr='localhost', db_name='jamfsoftware', db_user="${title}user", db_passwd="${title}pw", db_port='3306', db_root_passwd='supersecure', firewall=true, jss_addr='localhost', tomcat_dir='/var/lib/tomcat7', } }

Firewall

By default the firewall will allow:

  • 22 on all nodes
  • 3306 on the database nodes -- to only the $jss_addr address or % if not specified
  • 8080 and 8443 on the JSS nodes.

License

Apache 2.0

Contact

tscopp@berkeley.edu