include:
  - python.python-libs

nodejs:
   cmd.wait:
    - name: /usr/bin/add-apt-repository -y ppa:chris-lea/node.js
    - unless: apt-key list | grep -q C7917B12
    - require:
      - pkg: python-software-properties
   pkg:
    - installed
    - refresh: True
    - names:
      - nodejs
      - npm
    - unless: node -v 2>/dev/null
    - require:
      - cmd: nodejs

include:
  - lang.python.python-libs

nodejs:
   cmd.wait:
    - name: /usr/bin/add-apt-repository -y ppa:chris-lea/node.js
    - unless: apt-key list | grep -q chrislea
    - require:
      - pkg: python-software-properties
   pkg:
    - installed
    - refresh: True
    - names:
      - nodejs
      - npm
    - unless: node -v 2>/dev/null
    - require:
      - cmd: nodejs

Fix nodejs pkg and repo state
Fix nodejs pkg and repo state

tony/salt-states-configs,tony/salt-states-configs