<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>sty on PIG</title>
    <link>https://pig.pgsty.com/v1.11/tags/sty/</link>
    <description>Recent content in sty on PIG</description>
    <generator>Hugo</generator>
    <language>en</language>
    
    
    
      <lastBuildDate>Sun, 06 Dec 2026 08:44:11 +0800</lastBuildDate>
    
    
      <atom:link href="https://pig.pgsty.com/v1.11/tags/sty/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>pig do</title>
        <link>https://pig.pgsty.com/v1.11/do/</link>
        
        
        
        <guid>https://pig.pgsty.com/v1.11/do/</guid>
        <description>&lt;p&gt;&lt;code&gt;pig do&lt;/code&gt; runs administration playbooks from the selected Pigsty directory. It uses the inventory to add clusters, create databases and users, install packages, or remove services.&lt;/p&gt;&#xA;&lt;p&gt;Define the target configuration in the inventory first, then run the corresponding command. The commands invoke Ansible directly. This command group has no general &lt;code&gt;--plan&lt;/code&gt; mode.&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-bfd4bcb4-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;6&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-bfd4bcb4-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pig &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; pgsql-add  pg-test 10.10.10.12     &lt;span class=&#34;c1&#34;&gt;# add one PostgreSQL instance&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pig &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; pgsql-rm   pg-test 10.10.10.12     &lt;span class=&#34;c1&#34;&gt;# remove one PostgreSQL instance&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pig &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; pgsql-db   pg-meta app             &lt;span class=&#34;c1&#34;&gt;# create or update a database&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pig &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; pgsql-user pg-meta dbuser_app      &lt;span class=&#34;c1&#34;&gt;# create or update a user&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pig &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; node-pkg   pg-meta restic          &lt;span class=&#34;c1&#34;&gt;# install a package on selected nodes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pig &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; redis-add  redis-meta              &lt;span class=&#34;c1&#34;&gt;# initialize a Redis cluster&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Inventory selection is shared with &lt;a href=&#34;https://pig.pgsty.com/v1.11/sty/#sty-deploy&#34;&gt;&lt;code&gt;sty deploy&lt;/code&gt;&lt;/a&gt;. PIG passes the resolved&#xA;source to Ansible without interpreting it again relative to Pigsty home. Missing explicit,&#xA;environment, or default sources fail before playbook execution. Existing directory and executable&#xA;Inventory sources remain Ansible inputs; static Inventory commands do not execute them.&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig inventory</title>
        <link>https://pig.pgsty.com/v1.11/inventory/</link>
        
        
        
        <guid>https://pig.pgsty.com/v1.11/inventory/</guid>
        <description>&lt;p&gt;&lt;code&gt;pig inventory&lt;/code&gt; (alias &lt;code&gt;pig inv&lt;/code&gt;) inspects, edits, and validates the Pigsty inventory, &lt;code&gt;pigsty.yml&lt;/code&gt;. It also checks deployment prerequisites and exchanges configuration with PostgreSQL through the experimental &lt;code&gt;cmdb&lt;/code&gt; commands.&lt;/p&gt;&#xA;&lt;p&gt;When you edit a fragment, PIG preserves the YAML content and formatting outside that fragment. Before saving, it parses the complete file again. If parsing fails or another process has changed the original file, PIG keeps the original and reports an error.&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig sty</title>
        <link>https://pig.pgsty.com/v1.11/sty/</link>
        
        
        
        <guid>https://pig.pgsty.com/v1.11/sty/</guid>
        <description>&lt;p&gt;&lt;code&gt;pig sty&lt;/code&gt; installs Pigsty, prepares the controller, generates configuration, and runs deployment playbooks. It also manages dashboards through the Grafana HTTP API.&lt;/p&gt;&#xA;&lt;div class=&#34;td-table-scroll td-table-scroll--static&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th scope=&#34;col&#34; style=&#34;text-align: left&#34;&gt;Command&lt;/th&gt;&#xA;      &lt;th scope=&#34;col&#34; style=&#34;text-align: left&#34;&gt;Purpose&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sty init&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;Download and extract Pigsty into an installation directory&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sty boot&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;Install Ansible dependencies and prepare the controller&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sty conf&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;Generate and validate an inventory from a template&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sty deploy&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;Run the deployment playbook&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sty list&lt;/code&gt; / &lt;code&gt;sty get&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;List or download Pigsty releases&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;sty grafana&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td style=&#34;text-align: left&#34;&gt;Manage Grafana dashboards, language, and theme; alias &lt;code&gt;gf&lt;/code&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;quick-start&#34;&gt;Quick Start&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Run these commands on the controller:&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
