add update to proxmox and synology ha cluster
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
"publisher": "",
|
||||
"accountablePerson" : "",
|
||||
"copyrightHolder" : "",
|
||||
"copyrightYear" : "2019",
|
||||
"datePublished": "2019-12-27 09:09:05 \x2b0800 CST",
|
||||
"dateModified" : "2019-12-27 09:09:05 \x2b0800 CST",
|
||||
"copyrightYear" : "2020",
|
||||
"datePublished": "2020-01-17 12:20:33 \x2b0800 CST",
|
||||
"dateModified" : "2020-01-17 12:20:33 \x2b0800 CST",
|
||||
"url" : "https:\/\/h.cowbay.org\/",
|
||||
"wordCount" : "0",
|
||||
"image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"",
|
||||
@@ -46,9 +46,9 @@
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
|
||||
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1577410044" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1581582274" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1577410044" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1581582274" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -116,6 +116,10 @@ if (!doNotTrack) {
|
||||
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉</a>
|
||||
</li>
|
||||
|
||||
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
|
||||
<a href="/categories/%E9%9B%9C%E5%BF%B5">雜念</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -288,7 +292,282 @@ if (!doNotTrack) {
|
||||
|
||||
|
||||
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/bookstack-docker/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-12.jpg"></div></a>
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/ansible-selectattr/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-1.jpg"></div></a>
|
||||
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">27 November</span>
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="author">
|
||||
<a href="https://github.com/changchichung" title="Posts by Eric Chang" rel="author">Eric Chang</a>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="https://h.cowbay.org/post/ansible-selectattr/ "> [筆記] Ansible how to use 'list' in yaml file </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
<p>這幾天在玩ansible 時,碰到一個問題</p>
|
||||
|
||||
<p>假如我有個yaml檔作為資料來源,檔名是 abc.yml</p>
|
||||
|
||||
<p>大概長這樣</p>
|
||||
|
||||
<pre><code> "teams": [
|
||||
{
|
||||
"chinese_name": "TEAM1",
|
||||
"description": "TEAM1",
|
||||
"gid": 10125,
|
||||
"location": [
|
||||
"hq"
|
||||
],
|
||||
"name": "aa",
|
||||
"users": [
|
||||
"chen",
|
||||
"chou",
|
||||
"huani",
|
||||
"yey",
|
||||
"wa"
|
||||
]
|
||||
},
|
||||
{
|
||||
"chinese_name": "TEAM2",
|
||||
"description": "TEAM2",
|
||||
"gid": 10126,
|
||||
"location": [
|
||||
"hq"
|
||||
],
|
||||
"name": "bb",
|
||||
"users": [
|
||||
"chhiao",
|
||||
"chgc",
|
||||
"chy",
|
||||
"hsi",
|
||||
"li",
|
||||
"li",
|
||||
"chgchi"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
</code></pre>
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/ansible-selectattr/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/change-preferred-language-in-firefox/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-9.jpg"></div></a>
|
||||
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">15 November</span>
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="author">
|
||||
<a href="https://github.com/changchichung" title="Posts by Eric Chang" rel="author">Eric Chang</a>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="https://h.cowbay.org/post/change-preferred-language-in-firefox/ "> [筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
<p>最近在測試metabase,記得幾個月前就有測試過</p>
|
||||
|
||||
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
|
||||
|
||||
<p>所以這次改用docker來建立,根本五分鐘不到就建好了(挖鼻孔)</p>
|
||||
|
||||
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p>
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/change-preferred-language-in-firefox/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/copy_role_in_pgsql/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-7.jpg"></div></a>
|
||||
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">12 November</span>
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="author">
|
||||
<a href="https://github.com/changchichung" title="Posts by Eric Chang" rel="author">Eric Chang</a>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="https://h.cowbay.org/post/copy_role_in_pgsql/ "> PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者 </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
<p>因為工作上的需求,有個資料庫需要開放給不同team的人去存取</p>
|
||||
|
||||
<p>雖然都是在同一台機器上的同一個資料庫</p>
|
||||
|
||||
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
|
||||
|
||||
<p>這樣萬一出事,會比較好抓兇手??</p>
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/copy_role_in_pgsql/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/weird-client-server-connection/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-4.jpg"></div></a>
|
||||
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">08 November</span>
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="author">
|
||||
<a href="https://github.com/changchichung" title="Posts by Eric Chang" rel="author">Eric Chang</a>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="https://h.cowbay.org/post/weird-client-server-connection/ "> [筆記] 詭異的client&server間連線的問題,或許跟KVM有關係? </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
<p>這是發生在一個夜黑風高的寂寥深夜….. ( What The FXXX … )</p>
|
||||
|
||||
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
|
||||
|
||||
<p>在每個分公司,都會有一台伺服器作為KVM Host</p>
|
||||
|
||||
<p>上面跑兩台VM,一台作為ansible controller (目前沒作用)</p>
|
||||
|
||||
<p>另一台作為這邊所謂的 “Build Server”</p>
|
||||
|
||||
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
|
||||
|
||||
<p>問題就發生在這台 Build Server 上…</p>
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/weird-client-server-connection/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/nice-du-report-tool-durep/"><div class='featured-image lazy lazy-bg-image' data-background="https://h.cowbay.org/images/post-default-9.jpg"></div></a>
|
||||
|
||||
|
||||
<div class="excerpt-container">
|
||||
@@ -315,95 +594,19 @@ if (!doNotTrack) {
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="https://h.cowbay.org/post/bookstack-docker/ "> Bookstack Docker </a>
|
||||
<a href="https://h.cowbay.org/post/nice-du-report-tool-durep/ "> Nice Du Report Tool Durep </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
<p>Bookstack 是一套非常好用的線上”筆記”系統</p>
|
||||
<p>最近在重新規劃前人留下的backup爛攤子
|
||||
各個伺服器統一備份到一台backup storage
|
||||
想說如果每天能夠看到backup storage的磁碟用量的話
|
||||
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
|
||||
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
|
||||
基本上可以滿足我的需求</p>
|
||||
|
||||
<p>他用圖書館/書本的概念,讓使用者可以建立自己的”圖書館”</p>
|
||||
|
||||
<p>同時在圖書館內建立不同的”書籍”</p>
|
||||
|
||||
<p>而且支援 Markdown 語法</p>
|
||||
|
||||
<p>其他的方式像是在nextcloud上編輯 md檔案(字體太小)</p>
|
||||
|
||||
<p>或者是boostnote(只能在本機)</p>
|
||||
|
||||
<p>都或多或少有點小缺點</p>
|
||||
|
||||
<p>Bookstack則是沒有這些問題,不過就是系統「大」了點…</p>
|
||||
|
||||
<p>不過還好有人做成docker的方式來啟動,大大的降低了建置的難度(其實也沒有很難啦,只是要裝個PHP、弄個DB而已)</p>
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/bookstack-docker/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="featured-image-link" href="https://h.cowbay.org/post/enable-synology-public-ssh/"><div class='featured-image lazy lazy-bg-image' data-background="https://i.imgur.com/jcDQmI1.png"></div></a>
|
||||
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">05 November</span>
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="author">
|
||||
<a href="https://github.com/changchichung" title="Posts by Eric Chang" rel="author">Eric Chang</a>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="https://h.cowbay.org/post/enable-synology-public-ssh/ "> 筆記- 啟用群暉NAS (Synology NAS)的SSH Server 透過Publickey 認證免密碼登入 </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
<p>公司內有幾台NAS,其中有一台用來放開發人員的postgresql dump file
|
||||
之前都是主要的開發人員上傳到google drive,分享出來 ,然後其他人去抓回來</p>
|
||||
|
||||
<p>這樣子有個問題是,當server要存取這些檔案時,就沒辦法了,除非透過一些 3rd party的軟體
|
||||
像是這篇</p>
|
||||
|
||||
<p><a href="https://www.omgubuntu.co.uk/2017/04/mount-google-drive-ocamlfuse-linux">https://www.omgubuntu.co.uk/2017/04/mount-google-drive-ocamlfuse-linux</a></p>
|
||||
|
||||
<p>或者是這篇</p>
|
||||
|
||||
<p><a href="https://www.maketecheasier.com/mount-google-drive-ubuntu/">https://www.maketecheasier.com/mount-google-drive-ubuntu/</a></p>
|
||||
|
||||
<p>但是手邊的伺服器,原則上除非有必要,不然都沒有開放internet
|
||||
所以導致明明檔案就在那邊,但是要取得就是很麻煩</p>
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/enable-synology-public-ssh/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
<div class="more-link-wrapper"><a class="more-link" href="https://h.cowbay.org/post/nice-du-report-tool-durep/">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
@@ -523,6 +726,19 @@ if (!doNotTrack) {
|
||||
<a class="page-numbers" href="/page/10/">10</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="page-numbers" href="/page/11/">11</a>
|
||||
|
||||
|
||||
|
||||
<a class="next page-numbers" href="/page/11/">Next</a>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
@@ -662,7 +878,7 @@ if (!doNotTrack) {
|
||||
</div>
|
||||
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
|
||||
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1577410044"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1581582274"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user