Advertisement
Guest User

Untitled

a guest
Nov 12th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. nodejs-deps:
  2. pkg.installed:
  3. - names:
  4. - g++
  5. - curl
  6. - libssl-dev
  7. - apache2-utils
  8. require:
  9. - pkg: git
  10.  
  11. nodejs-source:
  12. git.latest:
  13. - target: /usr/src/nodejs
  14. - name: git://github.com/joyent/node.git
  15. - rev: master
  16. require:
  17. - pkg: git
  18.  
  19. nodejs-install:
  20. cmd.run:
  21. - cwd: /usr/src/nodejs
  22. - name: ./configure && make && make install
  23. - unless: if [ -z $(node --version) ];
  24. - require:
  25. - git: nodejs-source
  26. - pkg: nodejs-deps
  27.  
  28. #npm:
  29. # pkg:
  30. # - installed
  31.  
  32.  
  33.  
  34.  
  35. root@precise64:~# salt-call state.template '/srv/salt/nodejs/init.sls'
  36. [INFO ] Loading fresh modules for state activity
  37. [INFO ] Running state [git://github.com/joyent/node.git] at time 20:55:37.761974
  38. [ERROR ] Specified state git.latest is unavailable.
  39.  
  40. [INFO ] Running state [apache2-utils] at time 20:55:37.762903
  41. [INFO ] Executing state pkg.installed for apache2-utils
  42. [INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/root'
  43. [INFO ] Package apache2-utils is already installed
  44. [INFO ] Completed state [apache2-utils] at time 20:55:38.431877
  45. [INFO ] Running state [curl] at time 20:55:38.432611
  46. [INFO ] Executing state pkg.installed for curl
  47. [INFO ] Package curl is already installed
  48. [INFO ] Completed state [curl] at time 20:55:38.434593
  49. [INFO ] Running state [g++] at time 20:55:38.435013
  50. [INFO ] Executing state pkg.installed for g++
  51. [INFO ] Package g++ is already installed
  52. [INFO ] Completed state [g++] at time 20:55:38.437011
  53. [INFO ] Running state [libssl-dev] at time 20:55:38.437447
  54. [INFO ] Executing state pkg.installed for libssl-dev
  55. [INFO ] Package libssl-dev is already installed
  56. [INFO ] Completed state [libssl-dev] at time 20:55:38.439518
  57. local:
  58. ----------
  59. cmd_|-nodejs-install_|-./configure && make && make install_|-run:
  60. ----------
  61. __run_num__:
  62. 5
  63. changes:
  64. ----------
  65. comment:
  66. One or more requisite failed
  67. result:
  68. False
  69. git_|-nodejs-source_|-git://github.com/joyent/node.git_|-latest:
  70. ----------
  71. __run_num__:
  72. 0
  73. changes:
  74. ----------
  75. comment:
  76. Specified state git.latest is unavailable.
  77.  
  78. name:
  79. git://github.com/joyent/node.git
  80. result:
  81. False
  82. pkg_|-nodejs-deps_|-apache2-utils_|-installed:
  83. ----------
  84. __run_num__:
  85. 1
  86. changes:
  87. ----------
  88. comment:
  89. Package apache2-utils is already installed
  90. name:
  91. apache2-utils
  92. result:
  93. True
  94. pkg_|-nodejs-deps_|-curl_|-installed:
  95. ----------
  96. __run_num__:
  97. 2
  98. changes:
  99. ----------
  100. comment:
  101. Package curl is already installed
  102. name:
  103. curl
  104. result:
  105. True
  106. pkg_|-nodejs-deps_|-g++_|-installed:
  107. ----------
  108. __run_num__:
  109. 3
  110. changes:
  111. ----------
  112. comment:
  113. Package g++ is already installed
  114. name:
  115. g++
  116. result:
  117. True
  118. pkg_|-nodejs-deps_|-libssl-dev_|-installed:
  119. ----------
  120. __run_num__:
  121. 4
  122. changes:
  123. ----------
  124. comment:
  125. Package libssl-dev is already installed
  126. name:
  127. libssl-dev
  128. result:
  129. True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement