{"id":16655034,"url":"https://github.com/ycliuhw/etcd-runtime-reconfiguration-systemd-unit","last_synced_at":"2025-11-03T16:03:13.971Z","repository":{"id":98948578,"uuid":"116546139","full_name":"ycliuhw/etcd-runtime-reconfiguration-systemd-unit","owner":"ycliuhw","description":"service for runtime reconfiguration for existing etcd cluster","archived":false,"fork":false,"pushed_at":"2018-01-15T04:50:31.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T18:44:26.915Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ycliuhw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-01-07T07:24:05.000Z","updated_at":"2018-01-07T07:29:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8f88f24-4d8d-4a56-bce8-01ad71231fdb","html_url":"https://github.com/ycliuhw/etcd-runtime-reconfiguration-systemd-unit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ycliuhw/etcd-runtime-reconfiguration-systemd-unit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ycliuhw","download_url":"https://codeload.github.com/ycliuhw/etcd-runtime-reconfiguration-systemd-unit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282486107,"owners_count":26677118,"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","status":"online","status_checked_at":"2025-11-03T02:00:05.676Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T09:51:46.362Z","updated_at":"2025-11-03T16:03:13.946Z","avatar_url":"https://github.com/ycliuhw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# etcd-runtime-reconfiguration-systemd-unit\nservice for runtime reconfiguration for existing etcd cluster (`CoreOS`)\n\nPrepare metadata as below for new member to boot up then join cluster\n\n```\n/ # cat /run/metadata/etcd\nETCD_ENDPOINTS=http://internal-p-etcd-EtcdElb-VK9ALY39P25I-1745127484.ap-southeast-2.elb.amazonaws.com:2379,http://internal-p-etcd-EtcdElb-VK9ALY39P25I-1745127484.ap-southeast-2.elb.amazonaws.com:4001\nETCD_NAME=10.128.4.132\nETCD_INITIAL_CLUSTER=2bd7035aa791e873=http://10.128.1.214:2380,7dc0b97b2507b31c=http://10.128.4.132:2380,a824b620ece3ec0d=http://10.128.2.161:2380\nETCD_INITIAL_CLUSTER_STATE=existing\n```\n\n```\n[Unit]\nDescription=ETCD metadata agent\nRequires=metadata.service\nRequires=docker.service\nAfter=metadata.service\nAfter=docker.service\n\n[Service]\nType=oneshot\n\nEnvironmentFile=/run/metadata/ec2\nExecStartPre=-/usr/bin/docker stop etcd-runtime-reconfiguration-systemd-unit\nExecStartPre=-/usr/bin/docker rm -f etcd-runtime-reconfiguration-systemd-unit\nExecStartPre=/usr/bin/docker pull ycliuhw/etcd-runtime-reconfiguration-systemd-unit\nExecStart=/usr/bin/docker run --name=etcd-runtime-reconfiguration-systemd-unit \\\n    -v /run/metadata:/run/metadata \\\n    -v /usr/bin/etcdctl:/usr/bin/etcdctl \\\n    -e ETCD_DISCOVERY={{discovery_url}} \\  # here is jinja2 to render\n    -e ASG_NAME=${AWS_TAG_ASG_GROUPNAME} \\\n    -e AWS_DEFAULT_REGION=${AWS_REGION} \\\n    ycliuhw/etcd-runtime-reconfiguration-systemd-unit:latest\n\n[Install]\nWantedBy=multi-user.target\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycliuhw%2Fetcd-runtime-reconfiguration-systemd-unit/lists"}