五节点:oss
在 Pigsty 支持的五大操作系统发行版上,批量构建离线软件包。
Categories:
oss
配置模板是 Pigsty 本地构建离线软件包使用的配置模板,仅能在本地开发时使用。
配置概览
- 配置名称:
oss
- 节点数量: 五节点
- 配置说明:在 Pigsty 支持的五大操作系统发行版上,批量构建离线软件包。
- 适用系统:
el8
,el9
,d12
,u22
,u24
(一次性) - 适用架构:
x86_64
- Vagrant:四节点
pigsty/vagrant/spec/oss.rb
启用方式:直接将 oss.yml
配置文件替换 pigsty.yml
配置文件:
cp conf/build/oss.yml pigsty.yml
备注:这是一个固定IP地址的构建模板
配置内容
源文件地址:pigsty/conf/oss.yml
all:
vars:
version: v3.2.0
admin_ip: 10.10.10.9
region: default
etcd_clean: true
proxy_env:
no_proxy: "localhost,127.0.0.1,10.0.0.0/8,192.168.0.0/16,*.pigsty,*.aliyun.com,mirrors.*,*.myqcloud.com,*.tsinghua.edu.cn,*.pigsty.cc"
# building spec
pg_version: 17
cache_pkg_dir: 'dist/${version}/'
repo_modules: infra,node,pgsql,docker #kube,mssql,ivory
repo_packages: [ node-bootstrap, infra-package, infra-addons, node-package1, node-package2, pgsql-utility, docker ]
repo_extra_packages: [ pg17-core ,pg17-time ,pg17-gis ,pg17-rag ,pg17-fts ,pg17-olap ,pg17-feat ,pg17-lang ,pg17-type ,pg17-func ,pg17-admin ,pg17-stat ,pg17-sec ,pg17-fdw ,pg17-sim ,pg17-etl ,citus ]
pg_extensions: [ pg17-time ,pg17-gis ,pg17-rag ,pg17-fts ,pg17-feat ,pg17-lang ,pg17-type ,pg17-func ,pg17-admin ,pg17-stat ,pg17-sec ,pg17-fdw ,pg17-sim ,pg17-etl ]
children:
infra:
hosts:
10.10.10.9: { infra_seq: 2, admin_ip: 10.10.10.9 ,ansible_host: el9 }
10.10.10.12: { infra_seq: 3, admin_ip: 10.10.10.12 ,ansible_host: d12 }
10.10.10.22: { infra_seq: 4, admin_ip: 10.10.10.22 ,ansible_host: u22 }
vars: { node_conf: oltp }
etcd: { hosts: { 10.10.10.9: { etcd_seq: 1 }}, vars: { etcd_cluster: etcd } }
el9:
hosts: { 10.10.10.9: { pg_seq: 1, pg_role: primary } }
vars: { pg_cluster: pg-el9 }
d12:
hosts: { 10.10.10.12: { pg_seq: 1, pg_role: primary } }
vars: { pg_cluster: pg-d12 }
u22:
hosts: { 10.10.10.22: { pg_seq: 1, pg_role: primary } }
vars: { pg_cluster: pg-u22 }
注意事项
构建需要使用到 http://10.10.10.1 的本地源,需要提前配置好本地源,否则构建会失败。您可以将其替换为 https://repo.pigsty.cc
或 https://repo.pigsty.io
完成构建。
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.