In my configuration (which is essentially what this guide is describing), I use an external Tomcat, not the embedded one. So, my setup follows the Tomcat hardening guidelines, which recommend deploying exploded directories rather than WAR files. See the section on installing Tomcat (under Setting up the environment) for more info on this.
The "tar" command bundles up the contents of the "target/cas" directory, which is what would end up in the WAR file anyway, and also your "etc/cas/config" files.The other options just set things up so when the files are extracted they're owned by the right user and group and have the right permissions. Read ahead to the next section on the page (the installation shell script) and you'll see where the script extracts the application into "/var/lib/tomcat" ("/opt/tomcat/latest/webapps") and your config files into "/etc/cas/config". So there's no WAR file to deploy, because it's not needed in the external Tomcat setup. If you really want one Maven builds it and leaves it in the "target" directory, but it's still going to expect the config files to be in "/etc/cas/config", not inside the WAR file. --Dave David A. Curry, CISSP Director of Information Security The New School - Information Technology 71 Fifth Ave., 9th Fl. ~ New York, NY 10003 +1 212 229-5300 x4728 ~ david.cu...@newschool.edu Sent from my phone; please excuse typos and inane auto-corrections. On Wed, May 9, 2018, 20:29 Jann Malenkoff <jannmalenk...@gmail.com> wrote: > I've been following the excellent CAS installation examples at > https://dacurry-tns.github.io/deploying-apereo-cas/building_server_install-and-test-the-cas-application.html > > I have added our local setting for 'cas.properties' & 'log4j2.xml' in > '/opt/workspace/cas-overlay-template/etc/cas/config' > > However I didn't quite understand the following: > > casdev-master# cd /opt/workspace/cas-overlay-templatecasdev-master# tar czf > /tmp/cassrv-files.tgz --owner=root --group=tomcat --mode=g-w,o-rwx etc/cas > -C target cas --exclude cas/META-INF > > > > > Via above there is no build of the CAS war -- how will it pick up our > locals settings in our local setting for 'cas.properties' & 'log4j2.xml' in > '/opt/workspace/cas-overlay-template/etc/cas/config'? > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cas-user+unsubscr...@apereo.org. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/333a5108-6045-4249-826f-af1c49e78466%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/333a5108-6045-4249-826f-af1c49e78466%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAPmROsasczhXrxXxcCSvR28HwHfK-PFn-CU15r7NBSwfw%40mail.gmail.com.