surfuga / elkpi Goto Github PK
View Code? Open in Web Editor NEWAnsible playbook for ELK deployment on Raspberry pi
Ansible playbook for ELK deployment on Raspberry pi
I'm getting error at:
/opt/kibana/bin# npm install chdir=/opt/kibana
npm ERR! code ENOLOCAL
npm ERR! Could not install from "chdir=/opt/kibana" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-14T20_03_10_853Z-debug.log
I was trying your script, but I got some errors...
ansible must be installed, so 1st step is a sudo apt-get install ansible
Clone your git: git clone https://github.com/surfuga/elkpi/
Change hosts. to match your Raspberry pi's IP address
I had a ssh login error:
fatal: [192.168.1.11]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}
so I had to enable ssh log-in without password and make public and private keys:
$ cd /home/pi/.ssh
$ touch authorized_keys
$ chmod 0644 ./authorized_keys
$ ssh-keygen
$ ssh-copy-id -i ./id_rsa.pub RASPBERRY's_IP_ADDRESS
type password
Now you can edit /home/pi/elkpi/vars/vars-rpi.yml to get your desired versions (6.5.1 at the writing time of this issue)
Anf finally you can run: ansible-playbook -i hosts elk-rpi.yml
"npm WARN [email protected] No license field.", "", "npm ERR! Maximum call stack size exceeded
from : sudo cat /root/.npm/_logs/2019-12-27T17_39_39_602Z-debug.log
....
....
5852 silly gentlyRm target.inParent = false
5853 timing action:unbuild Completed in 2653ms
5854 verbose unlock done using /root/.npm/_locks/staging-f595f0f1e0969dea.lock f or /opt/kibana-5.4.3-linux-x86_64/node_modules/.staging
5855 timing stage:rollbackFailedOptional Completed in 7ms
5856 timing stage:runTopLevelLifecycles Completed in 51051ms
5857 silly saveTree [email protected]
5858 warn [email protected] No license field.
5859 verbose stack RangeError: Maximum call stack size exceeded
5859 verbose stack at RegExp.test (<anonymous>)
5859 verbose stack at isDepOptional (/usr/local/lib/node_modules/npm/lib/ins tall/deps.js:428:45)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:437:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5859 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/ install/deps.js:453:9)
5860 verbose cwd /opt/kibana-5.4.3-linux-x86_64
5861 verbose Linux 4.19.75-v7+
5862 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
5863 verbose node v12.14.0
5864 verbose npm v6.13.4
5865 error Maximum call stack size exceeded
5866 verbose exit [ 1, true ]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.