Giter Site home page Giter Site logo

quickx-app / vultrdata Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

Service to return redacted metadata about the requesting instance itself.

License: MIT License

Makefile 22.62% Go 77.38%
vultr vultr-api vultr-cli vultr-vps instance-metadata instance metadata

vultrdata's Introduction

vultrdata

Service to return santized metadata about the requesting instance itself.

Building

  • Run make deps build-linux

The v1.0.0 release has a Linux 64-bit binary compiled with Go 1.11.2

Installation

For systemd Linux systems:

  • Create the directory /opt/vultrdata
  • Copy vultrdata-linux to /opt/vultrdata/vultrdata (or copy the file named vultrdata if make run on a Linux system)
  • Copy the file vultrdata.service to /etc/systemd/vultrdata.service
  • Edit that vultrdata.service file changing the API_KEY value as well as listen addr/port and/or removing --userdata option
  • On that system: sudo systemctl daemon-reload
  • On that system: sudo systemctl enable vultrdata
  • On that system: sudo systemctl start vultrdata

It is recommended that the listen address is chosen to be on the internal network for security. When instances are created with internal networking enabled it usually has an additional address starting with 10. or possibly some other non-routing range.

You may have to configure both the Vultr Firewall configuration as well as any firewall configured on the operating-system.

Testing

  • curl -si 'http://10.1.1.1:8888/' (Using whichever listen addr/port was chosen in vultrdata.service)
  • Run the same command from another instance which should return data for that instance different than the first
  • Log messages from the service go to /var/log/syslog

vultrdata's People

Contributors

karmakaze avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.