gabe-ngrok module.
It covers installing the module, configuring your authtoken, and declaring tunnels.
What you’ll need
- Puppet installed. See Installing Puppet.
- An ngrok account.
- Your ngrok authtoken.
1. Install the Puppet module
Install the module from Puppet Forge:2. Configure ngrok and declare a tunnel
Configure thengrok class with your authtoken, then declare at least one ngrok::tunnel resource.
Currently ngrok requires an authtoken for every endpoint, so set it even when you only tunnel HTTP.
For example, declare a single HTTP tunnel to port 80:
ngrok class declaration above and set proto to tcp on the tunnel:
3. Verify ngrok is running
After your Puppet run completes, verify ngrok is running and your tunnels are active. If you usefacter, the module provides an ngrok fact you can query: