{"id":18995725,"url":"https://github.com/turbot/steampipe-plugin-nomad","last_synced_at":"2025-05-01T12:50:29.907Z","repository":{"id":156966092,"uuid":"632956125","full_name":"turbot/steampipe-plugin-nomad","owner":"turbot","description":"Use SQL to instantly query Nomad ACLs, deployments, namespaces \u0026 more. Open source CLI. No DB required.","archived":false,"fork":false,"pushed_at":"2025-04-18T20:56:02.000Z","size":174,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-01T12:49:40.253Z","etag":null,"topics":["backup","etl","hacktoberfest","nomad","postgresql","postgresql-fdw","sql","sqlite","steampipe","steampipe-plugin","zero-etl"],"latest_commit_sha":null,"homepage":"https://hub.steampipe.io/plugins/turbot/nomad","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-26T13:27:04.000Z","updated_at":"2025-04-18T20:18:45.000Z","dependencies_parsed_at":"2024-04-12T15:00:44.695Z","dependency_job_id":"fc6557c5-3c8a-49c4-a578-b68da29794ee","html_url":"https://github.com/turbot/steampipe-plugin-nomad","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-nomad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-nomad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-nomad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-nomad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/steampipe-plugin-nomad/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251879117,"owners_count":21658690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","etl","hacktoberfest","nomad","postgresql","postgresql-fdw","sql","sqlite","steampipe","steampipe-plugin","zero-etl"],"created_at":"2024-11-08T17:32:32.558Z","updated_at":"2025-05-01T12:50:29.805Z","avatar_url":"https://github.com/turbot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://hub.steampipe.io/images/plugins/turbot/nomad-social-graphic.png)\n\n# Nomad Plugin for Steampipe\n\nUse SQL to query nodes, jobs, deployments and more from Nomad.\n\n- **[Get started →](https://hub.steampipe.io/plugins/turbot/nomad)**\n- Documentation: [Table definitions \u0026 examples](https://hub.steampipe.io/plugins/turbot/nomad/tables)\n- Community: [Join #steampipe on Slack →](https://turbot.com/community/join)\n- Get involved: [Issues](https://github.com/turbot/steampipe-plugin-nomad/issues)\n\n## Quick start\n\n### Install\n\nDownload and install the latest Nomad plugin:\n\n```bash\nsteampipe plugin install nomad\n```\n\nConfigure your [credentials](https://hub.steampipe.io/plugins/turbot/nomad#credentials) and [config file](https://hub.steampipe.io/plugins/turbot/nomad#configuration).\n\nAdd your configuration details in `~/.steampipe/config/nomad.spc`:\n\n```hcl\nconnection \"nomad\" {\n  plugin    = \"nomad\"\n  # Authentication information\n  address   = \"http://18.118.164.168:4646\"\n  secret_id = \"c178b810-8b18-6f38-016f-725ddec5d58\"\n}\n```\n\n- `secret_id` parameter is only required to query the ACL tables like `nomad_acl_auth_method`, `nomad_acl_binding_rule`, `nomad_acl_policy`, `nomad_acl_role` and `nomad_acl_token` tables.\n- `namespace` parameter is only required to query the `nomad_namespace` table.\n\nOr through environment variables:\n\n```sh\nexport NOMAD_ADDR=http://18.118.144.168:4646\nexport NOMAD_TOKEN=c178b810-8b18-6f38-016f-725ddec5d58\n```\n\nRun steampipe:\n\n```shell\nsteampipe query\n```\n\nList your Nomad jobs:\n\n```sql\nselect\n  id,\n  name,\n  status,\n  dispatched,\n  namespace,\n  priority,\n  region\nfrom\n  nomad_job;\n```\n\n```\n+------+------+---------+------------+-----------+----------+--------+\n| id   | name | status  | dispatched | namespace | priority | region |\n+------+------+---------+------------+-----------+----------+--------+\n| docs | docs | pending | false      | default   | 50       | global |\n+------+------+---------+------------+-----------+----------+--------+\n```\n\n## Engines\n\nThis plugin is available for the following engines:\n\n| Engine        | Description\n|---------------|------------------------------------------\n| [Steampipe](https://steampipe.io/docs) | The Steampipe CLI exposes APIs and services as a high-performance relational database, giving you the ability to write SQL-based queries to explore dynamic data. Mods extend Steampipe's capabilities with dashboards, reports, and controls built with simple HCL. The Steampipe CLI is a turnkey solution that includes its own Postgres database, plugin management, and mod support.\n| [Postgres FDW](https://steampipe.io/docs/steampipe_postgres/overview) | Steampipe Postgres FDWs are native Postgres Foreign Data Wrappers that translate APIs to foreign tables. Unlike Steampipe CLI, which ships with its own Postgres server instance, the Steampipe Postgres FDWs can be installed in any supported Postgres database version.\n| [SQLite Extension](https://steampipe.io/docs/steampipe_sqlite/overview) | Steampipe SQLite Extensions provide SQLite virtual tables that translate your queries into API calls, transparently fetching information from your API or service as you request it.\n| [Export](https://steampipe.io/docs/steampipe_export/overview) | Steampipe Plugin Exporters provide a flexible mechanism for exporting information from cloud services and APIs. Each exporter is a stand-alone binary that allows you to extract data using Steampipe plugins without a database.\n| [Turbot Pipes](https://turbot.com/pipes/docs) | Turbot Pipes is the only intelligence, automation \u0026 security platform built specifically for DevOps. Pipes provide hosted Steampipe database instances, shared dashboards, snapshots, and more.\n\n## Developing\n\nPrerequisites:\n\n- [Steampipe](https://steampipe.io/downloads)\n- [Golang](https://golang.org/doc/install)\n\nClone:\n\n```sh\ngit clone https://github.com/turbot/steampipe-plugin-nomad.git\ncd steampipe-plugin-nomad\n```\n\nBuild, which automatically installs the new version to your `~/.steampipe/plugins` directory:\n\n```\nmake\n```\n\nConfigure the plugin:\n\n```\ncp config/* ~/.steampipe/config\nvi ~/.steampipe/config/nomad.spc\n```\n\nTry it!\n\n```\nsteampipe query\n\u003e .inspect nomad\n```\n\nFurther reading:\n\n- [Writing plugins](https://steampipe.io/docs/develop/writing-plugins)\n- [Writing your first table](https://steampipe.io/docs/develop/writing-your-first-table)\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) (source code) and [CC BY-NC-ND](https://creativecommons.org/licenses/by-nc-nd/2.0/) (docs) licenses. Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Steampipe](https://steampipe.io) is a product produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #steampipe on Slack →](https://turbot.com/community/join)**\n\nWant to help but don't know where to start? Pick up one of the `help wanted` issues:\n\n- [Steampipe](https://github.com/turbot/steampipe/labels/help%20wanted)\n- [Nomad Plugin](https://github.com/turbot/steampipe-plugin-nomad/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-plugin-nomad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fsteampipe-plugin-nomad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-plugin-nomad/lists"}