Using expect-lite to automate a Shibboleth 3 IDP deployment via ansible Source
Markdown source
1---2title: 'Using expect-lite to automate a Shibboleth 3 IDP deployment via ansible'3date: '2015-10-07'4published_at: '2015-10-07T15:18:00.000+11:00'5tags: ['ansible', 'expect-lite', 'linux', 'shibboleth']6author: 'Gavin Jackson'7excerpt: 'I was automating the shibboleth 3 IDP installer in Ansible and came across expect-lite (apt-get install expect-lite). It''s a minimal wrapper around expect - a tool used for automating interactive comm...'8updated_at: '2015-10-07T15:25:58.783+11:00'9legacy_url: 'http://www.gavinj.net/2015/10/using-expect-lite-to-automate.html'10---1112I was automating the shibboleth 3 IDP installer in Ansible and came across expect-lite (apt-get install expect-lite). It's a minimal wrapper around expect - a tool used for automating interactive command line apps.1314```15>./install.sh16>17>18>sso-dr.lesmills.net.au19>https://sso-dr.lesmills.net.au/idp/shibboleth20>lesmills.net.au21>xxx22>xxx23>xxx24>xxx25```2627In a nutshell - simple syntax, seems to do the job well (well worth adding to the toolbox)! When combined with Ansible templates it offers a simple was to perform automated installations (across our dev/test/prod environments).2829I originally wanted to use the Ansible http://docs.ansible.com/ansible/expect_module.html, but the version of ansible I was running was a bit out of date.3031[http://expect-lite.sourceforge.net/index.html](http://expect-lite.sourceforge.net/index.html)323334