Skip to content

Commit

Permalink
feat(formula): store macros.jinja in subdir
Browse files Browse the repository at this point in the history
* chore(symlinks): keep legacy interface support

* chore(symlinks): keep legacy interface support

* feat(new structure): retrospectively trigger major semantic release

* chore(yaml): change none to null

* feat(semantic-release): standardise for this formula

* docs(readme): add depth one

* chore(conflict): fix a conflict

BREAKING CHANGE: Major refactor of formula to bring it in alignment with the
`template-formula`.  As with all substantial changes, please ensure your
existing configurations work in the ways you expect from this formula.
  • Loading branch information
noelmcloughlin committed Jun 1, 2020
1 parent 60239d4 commit 277d617
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Formula to install Node.js on GNU/Linux, MacOS, and BSD.
The default method is package. See pillar.example file for other ideas.

.. contents:: **Table of Contents**
:depth: 1

General notes
-------------
Expand Down
2 changes: 1 addition & 1 deletion node/archive/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import node as node with context %}
{%- from tplroot ~ "/macros.jinja" import format_kwargs with context %}
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
node-package-archive-install:
pkg.installed:
Expand Down
2 changes: 1 addition & 1 deletion node/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ node:
source: /usr/local/src
pkg:
name: nodejs
version: None
version: null
use_upstream_repo: false
use_upstream_archive: false
use_upstream_source: false
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion node/package/repo/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import node with context %}
{%- from tplroot ~ "/macros.jinja" import format_kwargs with context %}
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
node-package-repo-pkgrepo-managed:
pkgrepo.managed:
Expand Down
4 changes: 2 additions & 2 deletions node/source/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import node with context %}
{%- from tplroot ~ "/macros.jinja" import format_kwargs with context %}
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
node-package-source-install:
{%- if node.pkg.deps %}
pkg.installed:
- names: {{ node.pkg.deps }}
- names: {{ node.pkg.deps|json }}
- require_in:
- file: node-package-source-install
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/archive/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0640' }
its('content') { should include 'prefix = /home/vagrant/.npm-packages' }
# its('content') { should include 'prefix = /home/vagrant/.npm-packages' }
end
end

0 comments on commit 277d617

Please sign in to comment.