# 1. Install the shibboleth-identity-provider tomcat application package and
# its web.xml.
#
# 2. Set up the directory for the configuration.

# To do basic test of installation:
#
#   JAVA_HOME=/usr/lib/jvm/default-java /opt/shibboleth-idp/bin/status.sh
class shibb_idp3::install {

  package { 'shibboleth-identity-provider':
    ensure => present,
  }

  # Add the XML file to /etc/tomcat8/Catalina/localhost that points to the root
  # of the Shibboleth IdP application. This is how tomcat knows where the
  # shibboleth-idp application is installed.
  file { '/etc/tomcat8/Catalina/localhost/idp.xml':
    source => 'puppet:///modules/shibb_idp3/etc/tomcat8/Catalina/localhost/idp.xml',
  }


}