Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm installation of hubot package not under /opt #29

Open
marksmall opened this issue Nov 23, 2015 · 1 comment
Open

npm installation of hubot package not under /opt #29

marksmall opened this issue Nov 23, 2015 · 1 comment

Comments

@marksmall
Copy link

First off, nice work, saves a lot of work to start from something like this. Apologies if I've got this all wrong but I followed the basic setup under README.md I believe. The hubot package installed via npm is installed under /usr/local/node/node-v0.12.0/lib/node_modules rather than /opt. This may be due to an existing setup to install node, I'm not sure, but I will remove that existing setup to prove it. Irrespective, I set the root_dir param to /usr/local/node/node-v0.12.0/lib/node_modules so I believe that should still work.

OS: Centos 6
NodeJS: 0.12.0
NPM: 2.5.1

My Usage:

class geodev::edina_hubot {                                                                                                                                                                     
  class { 'hubot':                                                                                                                                                                              
    adapter       => 'slack',                                                                                                                                                                   
    install_nodejs => false,                                                                                                                                                                    
#    root_dir       => '/usr/local/node/node-v0.12.0/lib/node_modules',                                                                                                                         
    build_deps    => [ 'libxml2-devel'],                                                                                                                                                        
    env_export    => {                                                                                                                                                                          
      'HUBOT_LOG_LEVEL'   => 'DEBUG',                                                                                                                                                           
      'HUBOT_SLACK_TOKEN' => 'my token'                                                                                                                        
    },                                                                                                                                                                                          
    dependencies  => {                                                                                                                                                                          
      "hubot"                  => "^2.17.0",                                                                                                                                                    
      "hubot-diagnostics"      => "0.0.1",                                                                                                                                                      
      "hubot-google-images"    => "^0.2.4",                                                                                                                                                     
      "hubot-google-translate" => "^0.2.0",                                                                                                                                                     
      "hubot-help"             => "^0.1.2",                                                                                                                                                     
      "hubot-heroku-keepalive" => "^1.0.0",                                                                                                                                                     
      "hubot-maps"             => "0.0.2",                                                                                                                                                      
      "hubot-pugme"            => "^0.1.0",                                                                                                                                                     
      "hubot-redis-brain"      => "0.0.3",                                                                                                                                                      
      "hubot-rules"            => "^0.1.1",                                                                                                                                                     
      "hubot-scripts"          => "^2.16.2",                                                                                                                                                    
      "hubot-shipit"           => "^0.2.0",                                                                                                                                                     
      "hubot-slack"            => "^3.4.2"                                                                                                                                                      
    },                                                                                                                                                                                          
  }                                                                                                                                                                                             
}                                                                                                                                                                                               

I have successfully installed this following the hubot docs, this is where I got the above dependencies. The problem I'm experiencing is the service cannot be started as it expects hubot to be installed under /opt, but it isn't, it's as if the package installation ignores the root_dir parameter.

Any help, thoughts would be appreciated.

@jlambert121
Copy link
Contributor

My guess is /opt is specified somewhere and needs to be updated (maybe in the init script?). I don't run hubot anymore, but am happy to merge PRs to keep this relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants