voxpupuli / puppet-ghostbuster

👻 Dead code detector for Puppet
Apache License 2.0
93 stars 27 forks source link

add preconnect option. fix #4 #6

Closed saimonn closed 8 years ago

saimonn commented 9 years ago

Enjoy with 'ssh -Nf -Ldbport:localhost:dbport user@puppetdbhost'

saimonn commented 9 years ago

@mcanevet here you are.

mcanevet commented 9 years ago

@saimonn it work fine when using it with command line arguments, but I can't figure out how to make it work in .puppet-ghostbuster.rb. I tried with:

-pssh\ -f\ -L8083:localhost:8080\ root@puppetdb.tld\ sleep\ 30
-p'ssh -f -L8083:localhost:8080 root@puppetdb.tld sleep 30'
saimonn commented 9 years ago

I tried with:

$ cat .puppet-ghostbuster.rc 
-ldebug
-shttp://localhost:8083
-p'ssh -Nf -L8083:localhost:8080 user@puppet.db.host'

log-level debug and server options are working as expected.

But optparser.rb seems to handle weirdly options loaded from file when they contain space. This need more investigation.

mattbostock commented 9 years ago

Would it perhaps be simpler to create an SSH tunnel separate to puppet-ghostbuster?

saimonn commented 9 years ago

@mattbostock Yes, it would be much simpler, but then it could not be automatically launched by a third party scripts

mcanevet commented 8 years ago

@saimonn I close this as we are using puppet-lint plugins now