2017-09-24 168 views
0

我已根據Puppet Enterprise映像配置了Azure VM,但根據此guide,我無法從https://.cloudapp.net訪問控制檯。我注意到我的虛擬機DNS是https://.eastasia.cloudapp.net。無法訪問Azure Puppet Enterprise控制檯

我猜我需要更新主機文件,但我並不十分熟悉Linux VM的正確設置。欣賞是否有人可以點亮一些光。

回答

1

我已經置備了Azure的VM基於木偶企業形象,但我 不能從https://.cloudapp.net訪問控制檯按本 指南。

當我們部署木偶使用puppet Enterprise 3.7.2,將其部署到經典模式或ARM模塊時,我無法訪問與您相同的控制檯。

當我們登錄此虛擬機,我們可以發現木偶正在運行,這裏是輸出:

[email protected]:~$ netstat -ant 
Active Internet connections (servers and established) 
Proto Recv-Q Send-Q Local Address   Foreign Address   State  
tcp  0  0 0.0.0.0:22    0.0.0.0:*    LISTEN  
tcp  0  0 10.0.0.4:16001   0.0.0.0:*    LISTEN  
tcp  0 256 10.0.0.4:22    167.220.255.6:62887  ESTABLISHED 
tcp  0  0 10.0.0.4:42321   168.63.129.16:80  TIME_WAIT 
tcp  0  0 10.0.0.4:42322   168.63.129.16:80  TIME_WAIT 
tcp6  0  0 :::22     :::*     LISTEN  
[email protected]:~$ 

我想有蹊蹺的是模板。

作爲解決方法,我們可以選擇傀儡企業2016.1模板部署傀儡,我們可以找到指導here。部署完成後,我們就可以通過SSH連接到該虛擬機,然後我們就可以找到木偶服務正在運行:

[email protected]:~# netstat -ant 
Active Internet connections (servers and established) 
Proto Recv-Q Send-Q Local Address   Foreign Address   State  
tcp  0  0 10.0.0.4:16001   0.0.0.0:*    LISTEN  
tcp  0  0 0.0.0.0:22    0.0.0.0:*    LISTEN  
tcp  0  0 0.0.0.0:5432   0.0.0.0:*    LISTEN  
tcp  0  0 0.0.0.0:443    0.0.0.0:*    LISTEN  
tcp  0  0 10.0.0.4:33096   168.63.129.16:80  TIME_WAIT 
tcp  0  0 127.0.0.1:47946   127.0.0.1:61613   ESTABLISHED 
tcp  0  0 127.0.0.1:34232   127.0.0.1:8140   TIME_WAIT 
tcp  0  0 127.0.0.1:5432   127.0.0.1:58812   ESTABLISHED 
tcp  0  0 10.0.0.4:43480   52.239.152.132:443  TIME_WAIT 
tcp  0  0 10.0.0.4:43484   52.239.152.132:443  TIME_WAIT 
tcp  0  0 10.0.0.4:43483   52.239.152.132:443  TIME_WAIT 
tcp  0  0 10.0.0.4:43481   52.239.152.132:443  TIME_WAIT 
tcp  0  0 127.0.0.1:58137   127.0.0.1:8142   ESTABLISHED 
tcp  0  0 10.0.0.4:33099   168.63.129.16:80  TIME_WAIT 
tcp  0  52 10.0.0.4:22    167.220.255.6:61149  ESTABLISHED 
tcp6  0  0 :::56516    :::*     LISTEN  
tcp6  0  0 :::8140     :::*     LISTEN  
tcp6  0  0 :::61613    :::*     LISTEN  
tcp6  0  0 :::8142     :::*     LISTEN  
tcp6  0  0 :::61616    :::*     LISTEN  
tcp6  0  0 :::22     :::*     LISTEN  
tcp6  0  0 :::5432     :::*     LISTEN  
tcp6  0  0 127.0.0.1:8142   127.0.0.1:58137   ESTABLISHED 
tcp6  0  0 127.0.0.1:58812   127.0.0.1:5432   ESTABLISHED 
tcp6  0  0 127.0.0.1:61613   127.0.0.1:47946   ESTABLISHED 

我們可以使用這個模板來部署木偶在Azure中,工作正常。