Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Modularize puppet logic into classes #2349
Comments
jeff1evesque
added
the
build
label
Jan 22, 2016
jeff1evesque
added
the
enhancement
label
Feb 23, 2016
jeff1evesque
added this to the 0.3 milestone
Feb 23, 2016
added a commit
that referenced
this issue
Feb 23, 2016
added a commit
that referenced
this issue
Feb 23, 2016
added a commit
that referenced
this issue
Feb 23, 2016
added a commit
that referenced
this issue
Feb 24, 2016
added a commit
that referenced
this issue
Feb 24, 2016
|
The following https://bpaste.net/show/45016ab334a7 link may not exist, so we paste it below:
IRC #puppet (02/24/16 ~ 11:15pm EST):
|
jeff1evesque
referenced this issue
in jeff1evesque/drupal-demonstration
Feb 24, 2016
Closed
Modularize 'configure_php.pp' into classes #265
|
The following general solution will work:
Note: typically, manifest(s), and module(s) should go in the ## script1.pp
class medium::script1 {
...
}## default.pp
include medium::script1
|
|
If we implement the following
Then, we get modules defined from our $ git status
On branch feature-xxxx
Untracked files:
(use "git add <file>..." to include in what will be committed)
puppet/stig/modules/some_module/
puppet/stig/modules/another_module/
puppet/stig/modules/third_module/
puppet/stig/modules/etc_module/
no changes added to commit (use "git add" and/or "git commit -a")Along with the following ...
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment global...
==> default: Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::medium::script1 for localhost.localdomain at /tmp/vagrant-puppet/manifests-a53f720de1108e13b0061de0d965bfa5/default.pp:xx:xx on node localhost.localdomain
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong. |
|
Similarly, if we implement the following
Then, we get modules defined from our Puppetfile, replacing our current module manifests: $ git status
On branch feature-xxx
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: puppet/global/modules/high/manifests/script3.pp
deleted: puppet/global/modules/high/manifests/script4.pp
deleted: puppet/global/modules/medium/manifests/script1.pp
deleted: puppet/global/modules/medium/manifests/script2.pp
Untracked files:
(use "git add <file>..." to include in what will be committed)
puppet/stig/modules/some_module/
puppet/stig/modules/another_module/
puppet/stig/modules/third_module/
puppet/stig/modules/etc_module/
no changes added to commit (use "git add" and/or "git commit -a")Along with the same ...
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment global...
==> default: Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::medium::script1 for localhost.localdomain at /tmp/vagrant-puppet/manifests-a53f720de1108e13b0061de0d965bfa5/default.pp:xx:xx on node localhost.localdomain
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
... |
|
Finally, if we implement the following
Then, no error traceback exists following $ cd puppet/global/modules
$ ls
contrib high medium |
|
Later, if we add additional manifest references within the
We will get the following error: ...
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment development...
==> default: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:38:in `get!': Could not find a directory environment named 'development' anywhere in the path: /tmp/vagrant-puppet/environments. Does the directory exist? (Puppet::Environments::EnvironmentNotFound)
==> default: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application_support.rb:29:in push_application_context'
==> default: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:337:in `run'
==> default: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:128:in `run'
==> default: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
==> default: from /opt/puppetlabs/bin/puppet:5:in `<main>'
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong. |
|
To eliminate the latest errors, we need to restructure our
Then, we can keep our puppet manifests the same: ## script1.pp
class medium::script1 {
...
}## default.pp
include medium::script1However, the above directory structure, and puppet manifests, would require the following
|
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
added a commit
that referenced
this issue
Feb 26, 2016
jeff1evesque
referenced this issue
Feb 28, 2016
Merged
#2349: Modularize puppet logic into classes #2409
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 1, 2016
added a commit
that referenced
this issue
Mar 2, 2016
added a commit
that referenced
this issue
Mar 2, 2016
added a commit
that referenced
this issue
Mar 2, 2016
added a commit
that referenced
this issue
Mar 4, 2016
|
We have the following error traceback, during ...
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Selecting previously unselected package python-scipy.
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Preparing to unpack .../python-scipy_0.13.3-1build1_a
md64.deb ...
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Unpacking python-scipy (0.13.3-1build1) ...
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Processing triggers for install-info (5.2.0.dfsg.1-2)
...
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: /var/lib/dpkg/info/install-info.postinst: 32: /var/li
b/dpkg/info/install-info.postinst: update-info-dir: not found
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: dpkg: error processing package install-info (--unpack
):
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: subprocess installed post-installation script return
ed error exit status 127
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Processing triggers for fontconfig (2.11.0-0ubuntu4.1
) ...
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: Errors were encountered while processing:
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: install-info
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: E: Sub-process /usr/bin/dpkg returned an error code (
1)
==> default: Notice: /Stage[main]/Install_sklearn_dependencies/Exec[install-skle
arn-dependencies]/returns: E: Failed to process build dependencies
==> default: Error: /Stage[main]/Install_sklearn_dependencies/Exec[install-sklea
rn-dependencies]: Failed to call refresh: apt-get build-dep scikit-learn -y retu
rned 100 instead of one of [0]
==> default: Error: /Stage[main]/Install_sklearn_dependencies/Exec[install-sklea
rn-dependencies]: apt-get build-dep scikit-learn -y returned 100 instead of one
of [0]
==> default: Notice: /Stage[main]/Git/Package[git]/ensure: ensure changed 'purge
d' to 'present'
==> default: Notice: /Stage[main]/Download_sklearn/Vcsrepo[/vagrant/build/scikit
-learn]/ensure: Creating repository from present
==> default: Notice: /Stage[main]/Download_sklearn/Vcsrepo[/vagrant/build/scikit
-learn]/ensure: created
==> default: Notice: /Stage[main]/Build_sklearn/Exec[build-sklearn]/returns: exe
cuted successfully
==> default: Notice: /Stage[main]/Install_sklearn/Exec[install-sklearn]/returns:
executed successfully
==> default: Notice: Finished catalog run in 425.02 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.Note: the above traceback is a result of a corresponding When we # nothing returned
$ cd /var/cache/apt/archives
$ ls | grep bash |
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
|
We have the following error traceback: ...
==> default: Error: Execution of '/usr/bin/npm install --global node-sass@3.4.0'
returned 1: npm WARN deprecated npmconf@2.1.2: this package has been reintegrat
ed into npm and is now out of date with respect to npm
==> default: npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer mainta
ined. Upgrade to lodash@^4.0.0.
==> default: npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and be
fore will fail on newer node releases. Please update to graceful-fs@^4.0.0 as so
on as possible.
==> default: /usr/bin/node-sass -> /usr/lib/node_modules/node-sass/bin/node-sass
==> default:
==> default: > node-sass@3.4.0 install /usr/lib/node_modules/node-sass
==> default: > node scripts/install.js
==> default: Error: /Stage[main]/Install_webcompiler_packages/Package[node-sass@
3.4.0]/ensure: change from absent to present failed: Execution of '/usr/bin/npm
install --global node-sass@3.4.0' returned 1: npm WARN deprecated npmconf@2.1.2:
this package has been reintegrated into npm and is now out of date with respect
to npm
==> default: npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer mainta
ined. Upgrade to lodash@^4.0.0.
==> default: npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and be
fore will fail on newer node releases. Please update to graceful-fs@^4.0.0 as so
on as possible.
==> default: /usr/bin/node-sass -> /usr/lib/node_modules/node-sass/bin/node-sass
==> default:
==> default: > node-sass@3.4.0 install /usr/lib/node_modules/node-sass
==> default: > node scripts/install.js
==> default: Notice: /Stage[main]/Install_webcompiler_packages/Package[babelify]
/ensure: created
==> default: Error: Execution of '/usr/bin/npm install --global imagemin' return
ed 1: > optipng-bin@3.1.0 postinstall /usr/lib/node_modules/imagemin/node_module
s/optipng-bin
==> default: > node lib/install.js
==> default: Error: /Stage[main]/Install_webcompiler_packages/Package[imagemin]/
ensure: change from absent to present failed: Execution of '/usr/bin/npm install
--global imagemin' returned 1: > optipng-bin@3.1.0 postinstall /usr/lib/node_mo
dules/imagemin/node_modules/optipng-bin
==> default: > node lib/install.js
==> default: Notice: /Stage[main]/Install_babelify_presets/Exec[install-babelify
-presets]: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Install_babelify_presets/Exec[install-babelify
-presets]: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/File[imagemin-startup-script]
: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/File[imagemin-startup-script]
: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Install_babelify_presets/Exec[install-babelif
y-presets]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/Create_compilers/File[imagemin-startup-script
]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-imagemi
n]: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-imagemi
n]: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-imagem
in]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/File[browserify-startup-scrip
t]: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/File[browserify-startup-scrip
t]: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/File[browserify-startup-scri
pt]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-browser
ify]: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-browser
ify]: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-browse
rify]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-imagemin]:
Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-imagemin]:
Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-bash-imagemin]
: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Service[imagemin]: Dependency
Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Service[imagemin]: Dependency
Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Service[imagemin]: Skipping
because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-img-files]: Depend
ency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-img-files]: Depend
ency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[touch-img-files]: Skipp
ing because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-browserify
]: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-browserify
]: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-bash-browserif
y]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Service[browserify]: Dependen
cy Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Service[browserify]: Dependen
cy Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Service[browserify]: Skippin
g because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-jsx-files]: Depend
ency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-jsx-files]: Depend
ency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[touch-jsx-files]: Skipp
ing because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/File[uglifyjs-startup-script]
: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/File[uglifyjs-startup-script]
: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/File[uglifyjs-startup-script
]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-uglifyj
s]: Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-uglifyj
s]: Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-uglify
js]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/File[sass-startup-script]: De
pendency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/File[sass-startup-script]: De
pendency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/File[sass-startup-script]: S
kipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-sass]:
Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-sass]:
Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-upstart-sass]:
Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-uglifyjs]:
Dependency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-uglifyjs]:
Dependency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-bash-uglifyjs]
: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Service[uglifyjs]: Dependency
Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Service[uglifyjs]: Dependency
Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Service[uglifyjs]: Skipping
because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-js-files]: Depende
ncy Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-js-files]: Depende
ncy Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[touch-js-files]: Skippi
ng because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-sass]: Dep
endency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[dos2unix-bash-sass]: Dep
endency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[dos2unix-bash-sass]: Sk
ipping because of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Service[sass]: Dependency Pac
kage[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Service[sass]: Dependency Pac
kage[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Service[sass]: Skipping beca
use of failed dependencies
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-scss-files]: Depen
dency Package[imagemin] has failures: true
==> default: Notice: /Stage[main]/Create_compilers/Exec[touch-scss-files]: Depen
dency Package[node-sass@3.4.0] has failures: true
==> default: Warning: /Stage[main]/Create_compilers/Exec[touch-scss-files]: Skip
ping because of failed dependencies
==> default: Notice: Finished catalog run in 207.79 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong. |
|
We currently have the following node, npm version, which was updated less than 3 days ago: vagrant@vagrant-ubuntu-trusty-64:~$ node -v
v5.7.1
vagrant@vagrant-ubuntu-trusty-64:~$ npm -v
3.6.0 |
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 5, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 12, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 14, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 15, 2016
added a commit
that referenced
this issue
Mar 16, 2016
added a commit
that referenced
this issue
Mar 16, 2016
added a commit
that referenced
this issue
Mar 16, 2016
added a commit
that referenced
this issue
Mar 16, 2016
added a commit
that referenced
this issue
Mar 16, 2016
|
Commenting out corresponding manifests from the ...
class package::webcompilers {
## variables
$webcompilers = [
'uglify-js',
'imagemin',
'node-sass',
'babel-core',
'browserify',
'babelify'
]
exec { 'echo-versions':
command => 'npm -v && node -v',
path => '/usr/bin',
before => Package[$webcompilers],
logoutput => true,
}
## packages: install general packages (npm)
package { $webcompilers:
ensure => 'present',
provider => 'npm',
}
}Otherwise, we get the following error traceback: ...
==> default: Running provisioner: puppet...
==> default: Running Puppet with environment development...
==> default: stdin: is not a tty
==> default: Notice: Compiled catalog for vagrant-ubuntu-trusty-64.home in envir
onment development in 1.84 seconds
==> default: Notice: /Stage[main]/Package::Webcompilers/Exec[echo-general-notice
]/returns: installing npm packages with:
==> default: Notice: /Stage[main]/Package::Webcompilers/Exec[echo-general-notice
]/returns: executed successfully
==> default: Notice: /Stage[main]/Package::Webcompilers/Exec[echo-versions]/retu
rns: 3.7.3
==> default: Notice: /Stage[main]/Package::Webcompilers/Exec[echo-versions]/retu
rns: v5.8.0
==> default: Notice: /Stage[main]/Package::Webcompilers/Exec[echo-versions]: Tri
ggered 'refresh' from 1 events
==> default: Notice: /Stage[main]/Package::Webcompilers/Package[uglify-js]/ensur
e: created
==> default: Error: Execution of '/usr/bin/npm install --global imagemin' return
ed 1: > optipng-bin@3.1.0 postinstall /usr/lib/node_modules/imagemin/node_module
s/optipng-bin
==> default: > node lib/install.js
==> default: Error: /Stage[main]/Package::Webcompilers/Package[imagemin]/ensure:
change from absent to present failed: Execution of '/usr/bin/npm install --glob
al imagemin' returned 1: > optipng-bin@3.1.0 postinstall /usr/lib/node_modules/i
magemin/node_modules/optipng-bin
==> default: > node lib/install.js
==> default: Error: Execution of '/usr/bin/npm install --global node-sass' retur
ned 1: npm WARN deprecated npmconf@2.1.2: this package has been reintegrated int
o npm and is now out of date with respect to npm
==> default: npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer mainta
ined. Upgrade to lodash@^4.0.0.
==> default: npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and be
fore will fail on newer node releases. Please update to graceful-fs@^4.0.0 as so
on as possible.
==> default: /usr/bin/node-sass -> /usr/lib/node_modules/node-sass/bin/node-sass
==> default:
==> default: > node-sass@3.4.2 install /usr/lib/node_modules/node-sass
==> default: > node scripts/install.js
==> default: Error: /Stage[main]/Package::Webcompilers/Package[node-sass]/ensure
: change from absent to present failed: Execution of '/usr/bin/npm install --glo
bal node-sass' returned 1: npm WARN deprecated npmconf@2.1.2: this package has b
een reintegrated into npm and is now out of date with respect to npm
==> default: npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer mainta
ined. Upgrade to lodash@^4.0.0.
==> default: npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and be
fore will fail on newer node releases. Please update to graceful-fs@^4.0.0 as so
on as possible.
==> default: /usr/bin/node-sass -> /usr/lib/node_modules/node-sass/bin/node-sass
... |
added a commit
that referenced
this issue
Mar 16, 2016
added a commit
that referenced
this issue
Mar 17, 2016
|
When commenting out the following portions of the
The associated webcompiler logic runs, without producing any error traceback:
Therefore, we need to determine if we can narrow the error to a single manifest:
Then, we can attempt a build, by placing the latter two manifest (or the single manifest culprit), after all other manifests declarations, within the |
|
We ran a
So, we will place the database manifest, after all other manifest references, within the Note: we should create a separate issue to further debug the above condition. |
jeff1evesque
referenced this issue
Mar 17, 2016
Closed
Consistently structure puppet with respect to 'Vagrantfile' #2413
|
We've placed the
|
jeff1evesque commentedJan 16, 2016
We need to modularize all of our puppet manifests, into classes, and possibly modules.
Note: this should be similar to several manifests found within drupal-demonstration.