{"id":17553533,"url":"https://github.com/gavincarr/hosttag_rb","last_synced_at":"2025-07-16T18:07:19.235Z","repository":{"id":1373357,"uuid":"1325308","full_name":"gavincarr/hosttag_rb","owner":"gavincarr","description":"Hosttag is a client for tagging hostnames into classes, storing  the mappings in a redis datastore.","archived":false,"fork":false,"pushed_at":"2012-06-28T03:45:38.000Z","size":292,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T06:05:56.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gavincarr.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-03T19:02:16.000Z","updated_at":"2023-09-25T01:13:07.000Z","dependencies_parsed_at":"2022-07-29T11:09:46.341Z","dependency_job_id":null,"html_url":"https://github.com/gavincarr/hosttag_rb","commit_stats":null,"previous_names":["gavincarr/hosttag"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gavincarr/hosttag_rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fhosttag_rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fhosttag_rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fhosttag_rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fhosttag_rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavincarr","download_url":"https://codeload.github.com/gavincarr/hosttag_rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fhosttag_rb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265529119,"owners_count":23782825,"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":[],"created_at":"2024-10-21T06:42:45.567Z","updated_at":"2025-07-16T18:07:19.211Z","avatar_url":"https://github.com/gavincarr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\n\nHosttag is a client for tagging hostnames into groups or classes, storing \nthe mappings in a redis datastore. It requires the 'redis' rubygem.\n\n\nHosttag assumes your redis server is found on a server called 'hosttag' on\nthe default redis port (6379). You can either setup 'hosttag' as a hostname\nalias in a local hosts file, or specify an alternative host to use in a\nHOSTTAG_SERVER environment variable, or explicitly via a -s/--server\n\u003chostname\u003e argument. Similarly, an alternate port can be specified using a\nHOSTTAG_PORT environment variable, or a -p/--port \u003cport\u003e command line\nargument.\n\n\n\nBasic Usage\n-----------\n\n  # Set some tags (-T says assume anything you don't know is a tag)\n  $ htset -T zeus dell centos centos5 server\n  $ htset -T minerva dell centos centos6 laptop\n  $ htset -T hermes hp ubuntu lucid desktop\n  $ htset -T athena hp ubuntu maverick server\n\n\n  # Queries\n  $ ht dell               \n  minerva zeus\n\n  $ ht ubuntu\n  hermes athena\n\n  $ ht -o hp dell         # -o/--or ORs arguments\n  hermes minerva zeus\n\n  $ ht -a ubuntu server   # -a/--and ANDs arguments\n  athena\n\n  $ ht -o de*             # tags and hosts may include globs (*, ?, [M-N])\n  zeus minerva hermes\n\n  $ ht -A                 # all hosts\n  athena hermes minerva zeus\n\n  $ ht -T                 # all tags\n  centos centos5 centos6 dell desktop hp laptop lucid maverick server\n\n\n\n\nSecurity\n--------\n\nA warning on security: basically, there isn't any. Anyone who can get write\nto your redis server can write, rewrite, and delete all your hosttags. So\nyou should only use hosttag on a trusted network.\n\nRedis supports a password-ed mode, and it might make sense to use that via\na config file or something, so you could at least restrict usage via file\npermissions (although traffic would still be in the clear, I believe). For\nnow, though, there's no security.\n\n\n\nInstallation\n------------\n\nTo install from source, unpack the tarball and run 'rake install' (requires\nrubygems and rake). You can set GEM_HOME to an alternate install directory \n(e.g. ~/.gem) if you want to install somewhere other than your gem default.\n\nRPMs are available for CentOS/RHEL {5,6} from the Open Fusion repository:\n\n  http://www.openfusion.net/linux/openfusion_rpm_repository\n\n\n\n\nAuthor\n------\n\nGavin Carr \u003cgavin@openfusion.com.au\u003e, http://www.openfusion.net/\n\nCopyright 2010-2011 Gavin Carr.\n\n\n\nLicence\n-------\n\nThis software is free software, licensed under the GNU Public License v3\nor any later version.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavincarr%2Fhosttag_rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavincarr%2Fhosttag_rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavincarr%2Fhosttag_rb/lists"}